Changes

Jump to navigation Jump to search
→‎Don't target x86: Add note on suppressing architecture mismatch warning.
Line 38: Line 38:     
===Don't target x86===
 
===Don't target x86===
New mod projects target <tt>Any CPU</tt> by default. If you explicitly changed it to <tt>x86</tt>, you'll need to change it back to <tt>Any CPU</tt> to avoid errors for 64-bit players.
+
New mod projects target <tt>Any CPU</tt> by default. If you explicitly changed it to <tt>x86</tt><sup>1</sup>, you'll need to change it back to <tt>Any CPU</tt> to avoid errors for 64-bit players.
    
To fix affected mods:
 
To fix affected mods:
Line 53: Line 53:  
<li>In the <tt>.sln</tt> solution file, replace all instances of <tt>x86</tt> with <tt>Any CPU</tt>.</li>
 
<li>In the <tt>.sln</tt> solution file, replace all instances of <tt>x86</tt> with <tt>Any CPU</tt>.</li>
 
</ol>
 
</ol>
 +
 +
<sup>1</sup> You might have set it to x86 to resolve warning MSB3270, which complains about a processor architecture mismatch between your project and the XNA framework. To suppress this warning, add <tt><nowiki><ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch></nowiki></tt> inside the <tt><nowiki><PropertyGroup></nowiki></tt> tags in your <tt>.csproj</tt> files.
    
[[Category:Modding]]
 
[[Category:Modding]]
20

edits

Navigation menu