Skip to content

Commit

Permalink
Fix #1473: Handle default values for 'Prefer32Bit' correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedpammer committed May 10, 2019
1 parent 7557d93 commit 905081e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 905081e

Please sign in to comment.