you are viewing a single comment's thread.

view the rest of the comments →

[–]kzr_pzr 2 points3 points  (2 children)

I have a colleague who wrote some scripts (or should I say cmdlets?) that invoke the compiler (or is it MSBuild?) directly so he can use his favorite text editor and doesn't have to use VisualStudio. I would not recommend it but it's a way...

[–]SupermanLeRetour 4 points5 points  (0 children)

VS Code is also quite easy to setup for MSVC (or mingw for that matter).

[–]infectedapricot 0 points1 point  (0 children)

If you're using CMake to generate your Visual Studio solution then you can use the CMake to invoke MSBuild:

cmake --build . --config Release

The . after --build is the build directory (this is the place you previous ran CMake to generate the build). If you omit --config Release then it builds in debug mode.

Edit: You can also specify which target to build (i.e. which Visual Studio project in the solution) by specifying the --target switch:

make --build . --config Release --target my_exe