Browse Source

WholeProjectDecompiler: Add <Prefer32Bit>True</Prefer32Bit>, if CorFlags.Prefers32Bit is set.

pull/1471/head
Siegfried Pammer 6 years ago
parent
commit
6f5284c4ae
  1. 3
      ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs

3
ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs

@ -212,6 +212,9 @@ namespace ICSharpCode.Decompiler.CSharp @@ -212,6 +212,9 @@ namespace ICSharpCode.Decompiler.CSharp
w.WriteStartElement("PropertyGroup"); // platform-specific
w.WriteAttributeString("Condition", " '$(Platform)' == '" + platformName + "' ");
w.WriteElementString("PlatformTarget", platformName);
if ((module.Reader.PEHeaders.CorHeader.Flags & CorFlags.Prefers32Bit) != 0) {
w.WriteElementString("Prefer32Bit", "True");
}
w.WriteEndElement(); // </PropertyGroup> (platform-specific)
w.WriteStartElement("PropertyGroup"); // Debug

Loading…
Cancel
Save