Skip to content

Commit

Permalink
Work around for UriFormatException caused by \\?\ prefix in the path (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
buyaa-n authored Jun 22, 2022
1 parent b02729b commit 78a2627
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ private static string GetTypeAndHashSuffix(string exePath, bool isSingleFile)
if (assembly != null && !isSingleFile)
{
AssemblyName assemblyName = assembly.GetName();
Uri codeBase = new Uri(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, assembly.ManifestModule.Name));

try
{
Expand All @@ -261,7 +260,7 @@ private static string GetTypeAndHashSuffix(string exePath, bool isSingleFile)
{
typeName = StrongNameDesc;
}
else
else if (Uri.TryCreate(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, assembly.ManifestModule.Name), UriKind.Absolute, out Uri codeBase))
{
try
{
Expand Down

0 comments on commit 78a2627

Please sign in to comment.