user8579173
user8579173

Reputation:

Can't run NMAKE in the command prompt after upgrade to Visual Studio 2017

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

Answers (3)

daqing He
daqing He

Reputation: 21

If you don't see vcvars , you should install msvc component.

Upvotes: 2

Sga
Sga

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

Leo Liu
Leo Liu

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:

enter image description here

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:

enter image description here

Upvotes: 2

Related Questions