Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Move try catch
  • Loading branch information
buyaa-n authored and github-actions committed Jun 29, 2022
commit baf4cc8cd5b519e6628407a747e130d2910ff06a
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,13 @@ 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
{
if (Uri.TryCreate(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, assembly.ManifestModule.Name), UriKind.Absolute, out Uri codeBase))
{
// Certain platforms may not have support for crypto
hash = IdentityHelper.GetNormalizedUriHash(codeBase);
typeName = UrlDesc;
}
// Certain platforms may not have support for crypto
hash = IdentityHelper.GetNormalizedUriHash(codeBase);
typeName = UrlDesc;
}
catch (PlatformNotSupportedException) { }
}
Expand Down