I have some power shell scripts file it uses both MSBUILD.exe and NMAKE, I invoke it by command prompt not developer command prompt of VS 2017, but it is not recognized after executed VsMSBuildCmd.bat file.
But it works fine on the Visual Studio 2015.
Besides, it is working through developer command prompt of VS 2017.
Any suggestions?
Visual Studio 2017 开发人员命令提示符的新位置似乎在这里:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\LaunchDevCmd.bat
Can't run NMAKE in the command prompt after upgrade to Visual Studio 2017
I got the same result " 'nmake' is not recognized as an internal or external command " after executed the VsMSBuildCmd.bat
file from VS2017 installation directory: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools
:
After test, I found the solution for this issue, after executed the VsMSBuildCmd.bat
, still need to executed the vcvars.bat
. The path of vcvars.bat
is:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\vsdevcmd\ext
In this case, NMAKE command would be recognized in command prompt:
如果你没有看到 vcvars ,你应该安装 msvc 组件。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.