VCVARSALL.BAT for Visual studio 2017

后端 未结 5 899
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 12:52

What is the location of file:

VCVARSALL.BAT

for Visual studio 2017?

5条回答
  •  情深已故
    2021-02-01 13:12

    VS2017 has reworked its directory structure and filenames. You should look for the file 'vcvars.bat', which can be located in "..\Program Files (x86)\Microsoft Visual Studio\2017\EDITION\Common7\Tools\vsdevcmd\ext\vcvars.bat" (replace EDITION with the version of Visual Studio you use).

    For simplicity, you can use "%VSAPPIDDIR%" in your call to point to the IDE folder where devenv.exe is located, and go back one folder to define your path to the batch file. For example:

    call "%VSAPPIDDIR%..\Tools\vsdevcmd\ext\vcvars.bat"
    

提交回复
热议问题