Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2019 equivalent of VS2015's vsvars32.bat

we are on VS2015, but want to migrate on VS2019. We have big build file, inside of it we build 17+ solutions. in the beginning of the build file there is

call "%VS140COMNTOOLS%vsvars32.bat"

it's targeting

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools

if we open C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools there is no any vsvars32.bat so, what is an equivalent of this VS2015's file for VS2019?

like image 208
JhonMalk199 Avatar asked Nov 28 '25 00:11

JhonMalk199


1 Answers

“The VsDevCmd.bat file sets the appropriate environment variables to enable command-line builds.”

“ Note Visual Studio 2015 and earlier versions used VSVARS32.bat, not VsDevCmd.bat for the same purpose.”

See more here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/how-to-set-environment-variables-for-the-visual-studio-command-line.

like image 118
Raluca Pandaru Avatar answered Dec 01 '25 11:12

Raluca Pandaru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!