From 6f5284c4ae06c1f41e0807fc262300723bd6d4df Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Wed, 27 Mar 2019 23:42:46 +0100 Subject: [PATCH] WholeProjectDecompiler: Add True, if CorFlags.Prefers32Bit is set. --- ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs b/ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs index f25ded317..0dd06ba08 100644 --- a/ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs +++ b/ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs @@ -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(); // (platform-specific) w.WriteStartElement("PropertyGroup"); // Debug