This related question shows how to build and run a Visual Studio solution from Visual Studio Developer Command Prompt. My question is, is it possible to build and run a Visual Studio solution directly from the regular Windows Command Prompt (cmd.exe)?
Finally, I found the answer.
C:\Users\Hwathanie>cmd.exe /k ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"" x86
C:\Users\Hwathanie>msbuild "C:\Users\Hwathanie\Documents\Visual Studio 2013\Projects\MyProject\MyProject.sln" /p:Configuration=Debug
C:\Users\Hwathanie>"C:\Users\Hwathanie\Documents\Visual Studio 2 013\Projects\MyProject\bin\Debug\MyProject.exe"
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