Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Powershell and PSake execute msbuild from?

While making a build automation I came across an issue. Along with upgrading Visual Studio 2013, the path to MSBuild has moved as described here http://timrayburn.net/blog/visual-studio-2013-and-msbuild/

I've updated my system path to point to this new location for msbuild. Using a regular cmd prompt msbuild resolves just fine. But running my scripts in powershell, it seems to still pick up the old one, and showing the issue as described in the link. How can I see and change where powershell and psake picks up msbuild from, so I can point to the expected version?

like image 407
Rasmus Christensen Avatar asked Jan 08 '14 15:01

Rasmus Christensen


Video Answer


1 Answers

PSake supports more MSBuild versions on one box. You can choose version and platform eg. 4.0x64 with framework directive. Path to MSBuild tools is not taken from $env:path but is computed. It uses registry to find proper path.

VS 2013 and MSBuild Tools are supported since PSake 4.3

like image 135
Aleš Roubíček Avatar answered Sep 20 '22 11:09

Aleš Roubíček