Skip to content

Commit 30aaca1

Browse files
authored
Small fix for full file path on WinUI (#823)
1 parent 2e35bad commit 30aaca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/PlatformServices.WinUI/Services/WinUIFileOperations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void DisposeNavigationSession(object navigationSession)
108108
/// </returns>
109109
public string GetFullFilePath(string assemblyFileName)
110110
{
111-
return (SafeInvoke<string>(() => Path.GetFullPath(assemblyFileName)) as string) ?? assemblyFileName;
111+
return (SafeInvoke<string>(() => Path.Combine(Windows.ApplicationModel.Package.Current.InstalledLocation.Path, assemblyFileName)) as string) ?? assemblyFileName;
112112
}
113113

114114
private static object SafeInvoke<T>(Func<T> action, string messageFormatOnException = null)

0 commit comments

Comments
 (0)