User Tools

Site Tools


c:build:build-vs-project-cmd-line

This is an old revision of the document!


Build Visual Studio project in command line

MSBuild tools should be installed for the corresponding Visual Studio version.
VCTargetsPath env variable needs to be set to the corresponding folder that contains the Microsoft.Cpp.Default.props file.
Ex: VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MsBuild.exe /t:clean /t:Build /p:configuration=release ProjName.sln
c/build/build-vs-project-cmd-line.1565252359.txt.gz · Last modified: 2023/07/04 19:36 (external edit)