Reza ArabQaeni
Reza ArabQaeni

Reputation: 4908

Build a project in release mode without changing build mode?

I have a solution with a lot of project, Default build configuration manager is Debug.

Some times i need build only one project in release mode, So it force me to change solution build mode to release that consume long time to change it and after build to switch back to debug mode.

Question is any way to achieve this purpose quickly without doing this above stages?

Thanks.

Upvotes: 1

Views: 3423

Answers (2)

Oded
Oded

Reputation: 499372

Use the command line.

Use msbuild passing in the project file and set the configuration property to release.

In a Visual Studio Command Prompt window:

msbuild /property:Configuration=Release <path to project>

Upvotes: 1

Joel Lucsy
Joel Lucsy

Reputation: 8706

Look into the batch build menu. You can select a particular project and have only that one build.

Upvotes: 5

Related Questions