In my solution with several projects I am trying to change the Platform
from Any CPU to x86. But x86 is not in the drop down. What do I need to do to be able to choose x86?
I need to change to x86 because of an System.BadImageFormatException
error, as per this question: What causes System.BadImageFormatException when constructing System.Data.SQLite.SQLiteConnection
And, in a possibly related problem, the newest project in the solution is missing one of the configurations from the configuration drop down:
It should have a "Staging" configuration like all of the other projects, but does not. How do I add it?
EDIT:
If I choose the "New ..." option, then it asks me to copy from "Any CPU". If I copy from "Any CPU", isnt that just the same as using "Any CPU" in the first place?
Click BUILD > CONFIGURATION MANAGER select the platform dropdown to X86 and click CLOSE. If you don't have x86 as an available option in the drop down list, select "<New...>", then for "Type or select the new platform" to choose "x86" and "Copy settings from" as "<Empty>".
In the Configuration Manager dialog, open the Active solution platform drop-down list box and click <New> …. In the New Solution Platform dialog, select x64 in the Type or select the new platform drop-down list box. Select x86 in the Copy settings from drop-down list box. Click OK.
Right-click on the project node in Solution Explorer and select Properties. Expand the Build section, and select the Output subsection. Find the Base output path for C#, and type in the path to generate output to (absolute or relative to the root project directory), or choose Browse to browse to that folder instead.
Both the Configuration and Platform drop downs have a:
<New...>
option. In fact you have them circled in your annotated screenshots!
Use that option to create the "Staging" configuration and the "x86" platform for the corresponding project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With