Skip to content

Commit

Permalink
Small fix for full file path on WinUI (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
azchohfi committed Apr 28, 2021
1 parent 2e35bad commit 30aaca1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -108,7 +108,7 @@ public void DisposeNavigationSession(object navigationSession)
/// </returns>
public string GetFullFilePath(string assemblyFileName)
{
return (SafeInvoke<string>(() => Path.GetFullPath(assemblyFileName)) as string) ?? assemblyFileName;
return (SafeInvoke<string>(() => Path.Combine(Windows.ApplicationModel.Package.Current.InstalledLocation.Path, assemblyFileName)) as string) ?? assemblyFileName;
}

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

0 comments on commit 30aaca1

Please sign in to comment.