4

Even when I try to put the path to the containing folder of MSBuild.exe e.g. C:\Windows\Microsoft.NET\Framework\v4.0.30319\, calling MSBuild from a command-line doesn't work.

How can I reach that?

Nam G VU
  • 33,193
  • 69
  • 233
  • 372
  • How did you try to add it? – jessehouwing Dec 17 '13 at 18:53
  • 4
    `set path=%path%;C:\Windows\Microsoft.NET\Framework\v4.0.30319\` should do. Or opening the Visual Studio Command Prompt from the start menu instead of the standard console. – jessehouwing Dec 17 '13 at 18:54
  • I figure it out my mistake. It seems I have one extra space preceeding C:\ when adding to PATH; i.e. `(something before); C:\my\path`. It should be `(something before);C:\my\path\` – Nam G VU Dec 17 '13 at 19:50
  • 1
    @NamGVU: You should probably post you solution as an answer and accept it so this question is marked as having an accepted answer. – cic Feb 19 '15 at 12:44
  • 1
    @NamGVU: And now you only need to accept it, :p. – cic Feb 24 '15 at 08:16
  • Haha, sorry for my missed. Done for now. Thanks again! @cic – Nam G VU Feb 24 '15 at 09:13

1 Answers1

4

I figure it out my mistake. It seems I have one extra space preceeding C:\ when adding to PATH; i.e. (something before); C:\my\path. It should be (something before);C:\my\path

Nam G VU
  • 33,193
  • 69
  • 233
  • 372