Skip to content
Permalink
Browse files

Fix #1473: Handle default values for 'Prefer32Bit' correctly.

  • Loading branch information...
siegfriedpammer committed May 10, 2019
1 parent 7557d93 commit 905081ee37650f10ad402be9374aad0f114c12cf
Showing with 2 additions and 2 deletions.
  1. +2 −2 ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs
@@ -219,8 +219,8 @@ void WriteProjectFile(TextWriter writer, IEnumerable<Tuple<string, string>> file
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");
if (frameworkVersionNumber > 400 && platformName == "AnyCPU" && (module.Reader.PEHeaders.CorHeader.Flags & CorFlags.Prefers32Bit) == 0) {
w.WriteElementString("Prefer32Bit", "false");
}
w.WriteEndElement(); // </PropertyGroup> (platform-specific)

0 comments on commit 905081e

Please sign in to comment.
You can’t perform that action at this time.