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

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

  • Microsoft Windows [Version 10.0.15063] (c) 2017 Microsoft Corporation. All rights reserved. C:\Windows\System32>set "PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin" C:\Windows\System32>msbuild.exe "D:\WPF\GUI_Maker\GUI\GUI_1.vbproj" /t:Build Microsoft (R) Build Engine version 14.0.23107.0 Copyright (C) Microsoft Corporation. All rights reserved. MSBUILD : error MSB1009: Project file does not exist. Switch: D:\WPF\GUI_Maker\GUI\GUI_1.vbproj C:\Windows\System32> – user1744515 Aug 5 '17 at 13:40
  • Not working:-MSBUILD : error MSB1009: Project file does not exist. Switch: D:\WPF\GUI_Maker\GUI\GUI_1.vbproj – user1744515 Aug 5 '17 at 13:48
  • Thanks David;The following works:- cd C:\Program Files (x86)\MSBuild\14.0\Bin msbuild.exe D:\WPF\GUI_Maker\GUI\GUI_2.vbproj /t:Build – user1744515 Aug 5 '17 at 14:01
  • I am sure the above problem is created by Microsoft's latest updates kvinvisibleguy – user1744515 Aug 5 '17 at 14:04

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.