O
O
Orc2020-06-03 07:26:23
cmd/bat
Orc, 2020-06-03 07:26:23

How to compile [build] a Visual Studio 2019 project via BAT/CMD?

Good time!
There was a need to build a Visual Studio 2019 project using BAT/CMD.
Tell me how to implement it correctly: do not start the Visual Studio 2019 environment itself, but start the assembly only with BAT / CMD commands.
-
I'm trying to start building sources from php scripts. I know how to run BAT/CMD from PHP scripts.
Does anyone have a ready-made set of BAT/CMD commands/instructions to start building a Visual Studio 2019 project?..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2020-06-03
@z0ddak

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\IDE\devenv.com solution.sln /build "Release|x64"
This is how the launch is done, but I run it through PowerShell, so in the batch file there may be some nuances.

V
Vladimir Korotenko, 2020-06-03
@firedragon

https://docs.microsoft.com/en-us/visualstudio/msbu...
msbuild SlnFolders.sln -target:NotInSlnfolder:Rebuild;NewFolder\InSolutionFolder:Clean

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question