Search code examples
c#visual-studio-2010configurationmanager

How to set a project output platform to x86 in Visual Studio 2010


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

enter image description here

And, in a possibly related problem, the newest project in the solution is missing one of the configurations from the configuration drop down:

enter image description here

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?

enter image description here


Solution

  • 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.