Pregunta

I'm attempting to compile a visual studio solution using devenv.exe from the command line. I can get it to work but all the projects in the solution are compiled for AnyCPU and I want them to be compiled for x86. Both the debug and release configurations are set to x86 for all projects.

When I compile from within the IDE it works fine. But when I try to build the solution from the command line it always builds all projects for AnyCPU. Is there a way to devenv.exe to build in x86 only?

We are using Visual Studio 2012

¿Fue útil?

Solución

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" myproject.sln /Build "Release|x86

Otros consejos

You can for sure use this command: devenv /? it will show you everything you want to know and even more.

This is taken from devenv /?

/Build Builds the solution or project with the specified solution configuration. For example "Debug". If multiple platforms are possible, the configuration name must be enclosed in quotes and contain platform name. For example: "Debug|Win32".

enter image description here

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top