vsvars32.bat in Visual Studio 2017

后端 未结 6 467
南笙
南笙 2020-12-08 13:31

As the Visual Studio installer is new from Visual Studio 2017 version, I cannot located the Visual C++ component, explained here.

How do I proceed to get the

6条回答
  •  孤街浪徒
    2020-12-08 13:50

    Microsoft changes the vcvars32.bat to VsDevCmd.bat in VS 2017 link

    I use vcvars32.bat in pré-build (project properties->build events), so for me, I've changed:
    "$(DevEnvDir)..\..\VC\bin\vcvars32.bat"
    to
    $(DevEnvDir)\..\Tools\VsDevCmd.bat"
    and it worked!

    Edit: In Visual Studio 15.9 the path was changed (as Fütemire said in the comment), so I had to change:
    $(DevEnvDir)\..\Tools\VsDevCmd.bat"
    to:
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat

    *You can create an environment variable to store the path. I couldn't find an already defined.

提交回复
热议问题