mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Fixing policheck flags
This commit is contained in:
@@ -91,23 +91,23 @@ namespace Wox.Infrastructure.Exception
|
||||
|
||||
// GlobalAssemblyCache - .NET Core and .NET 5 and later: false in all cases.
|
||||
// Source https://learn.microsoft.com/dotnet/api/system.reflection.assembly.globalassemblycache?view=net-6.0
|
||||
foreach (var ass in AppDomain.CurrentDomain.GetAssemblies())
|
||||
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
|
||||
{
|
||||
sb.Append("* ");
|
||||
sb.Append(ass.FullName);
|
||||
sb.Append(assembly.FullName);
|
||||
sb.Append(" (");
|
||||
|
||||
if (ass.IsDynamic)
|
||||
if (assembly.IsDynamic)
|
||||
{
|
||||
sb.Append("dynamic assembly doesn't has location");
|
||||
}
|
||||
else if (string.IsNullOrEmpty(ass.Location))
|
||||
else if (string.IsNullOrEmpty(assembly.Location))
|
||||
{
|
||||
sb.Append("location is null or empty");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append(ass.Location);
|
||||
sb.Append(assembly.Location);
|
||||
}
|
||||
|
||||
sb.AppendLine(")");
|
||||
|
||||
Reference in New Issue
Block a user