Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSBuildExtensionsPath32 not set correctly?

Tags:

For the life of me, I cannot find where this value is actually set. It SHOULD be pointing at C:\Program Files\MSBuild, but on our build box, it's pointing at C:. How can I change this?

like image 504
Jamie Nordmeyer Avatar asked Jun 29 '10 17:06

Jamie Nordmeyer


1 Answers

MSBuildExtensionsPath32 is set internally by MSBuild. (BuildEngine.BuildPropertyGroup.SetExtensionsPathProperties)

But you could override it by setting an environment variable.

SET MSBuildExtensionsPath="C:\Program Files\MSBuild" 

Or you could override the value in your project file :

<PropertyGroup>   <MSBuildExtensionsPath>C:\Users\madgnome\Desktop\msbuild</MSBuildExtensionsPath>    <!-- It works too with relative path -->   <!--<MSBuildExtensionsPath>..\msbuild</MSBuildExtensionsPath>--> </PropertyGroup>  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> 
like image 187
Julien Hoarau Avatar answered Sep 21 '22 00:09

Julien Hoarau