Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VCVARSALL.BAT for Visual studio 2019

What is the location of vcvarsall.bat file for Visual Studio 2019 (Preview and future release as well)?

Seems it is different from VS 2017 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat"

like image 668
Anton Kochkov Avatar asked Mar 11 '19 07:03

Anton Kochkov


People also ask

Where is Vcvarsall bat 2019?

If you installed to the default location, you can paste: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall. bat in the batch file box and click Done.

Can not find Vcvarsall bat?

When you see “unable to find vcvarsall. bat”, it means you're installing a package that has an extension module, but only the source code. “vcvarsall. bat” is part of the compiler in Visual Studio that is necessary to compile the module.

How do I find Vsdevcmd bat?

bat was (by default) located under C:\Program Files (x86)\Microsoft Visual Studio V.w\Common7\Tools .


2 Answers

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat"

like image 81
skysign Avatar answered Sep 21 '22 12:09

skysign


As it turned out the path is very similar, just without "Community" part:

For VS2019:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat

For VS2022 since the toolchain now is 64-bit:

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat
like image 24
Anton Kochkov Avatar answered Sep 22 '22 12:09

Anton Kochkov