1

All these days i was successfully compiling,debugging any v.net wpf project from cmd window;i was using the syntax similar to:-

set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin 
msbuild "D:\WPF\GUI_Maker\GUI\GUI_1.vbproj" /t:Build

and was able to compile successfully.Suddenly the cmd does not respond to this and also commands like javac,ipconfig,and netsh etc.Environmental path is ok- C:\WINDOWS\system32; - is correctly placed in the beginning. Can anybody find a solution for this.I have tried exhaustively in the net.

regards and thanks in advance, kvinvisibleguy

1 Answers1

0

Your PATH is broken.

set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin

You need to surround the PATH=... with quote " characters because it contains parentheses (, which need to be escaped as they have a special meaning.

Use the following command:

set "PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin"

Further Reading

DavidPostill
  • 162,382