Browse Source

Fix bug in DetectTargetFrameworkId

pull/1198/head
Siegfried Pammer 7 years ago
parent
commit
df2a3b1b34
  1. 2
      ICSharpCode.Decompiler/Metadata/DotNetCorePathFinderExtensions.cs

2
ICSharpCode.Decompiler/Metadata/DotNetCorePathFinderExtensions.cs

@ -18,7 +18,7 @@ namespace ICSharpCode.Decompiler.Metadata @@ -18,7 +18,7 @@ namespace ICSharpCode.Decompiler.Metadata
foreach (var h in reader.GetCustomAttributes(Handle.AssemblyDefinition)) {
var attribute = reader.GetCustomAttribute(h);
if (attribute.GetAttributeType(reader).ToString() != TargetFrameworkAttributeName)
if (attribute.GetAttributeType(reader).GetFullTypeName(reader).ToString() != TargetFrameworkAttributeName)
continue;
var blobReader = reader.GetBlobReader(attribute.Value);
if (blobReader.ReadUInt16() == 0x0001) {

Loading…
Cancel
Save