Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/Myra.Samples.AssetManagement/PathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static string ExecutingAssemblyDirectory
get
{
string codeBase = Assembly.GetExecutingAssembly().Location;
UriBuilder uri = new UriBuilder(codeBase);
UriBuilder uri = new UriBuilder($"path:{codeBase}");
string path = Uri.UnescapeDataString(uri.Path);
return Path.GetDirectoryName(path);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Myra/Utility/PathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static string ExecutingAssemblyDirectory
get
{
string codeBase = Assembly.GetExecutingAssembly().Location;
UriBuilder uri = new UriBuilder(codeBase);
UriBuilder uri = new UriBuilder($"path:{codeBase}");
string path = Uri.UnescapeDataString(uri.Path);
return Path.GetDirectoryName(path);
}
Expand Down
Loading