Reputation:
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?
Upvotes: 1
Views: 7342
Reputation: 3658
It seems like the new location for Visual Studio 2017 Developer Command Prompt is here:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\LaunchDevCmd.bat
Upvotes: 5
Reputation: 76790
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:
Upvotes: 2