From c28b12ac2b1e22eb5cee08e4d160c104db227391 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Mon, 28 Feb 2011 00:34:44 +0530 Subject: [PATCH] [xbuild] Add $(MSBuildToolsRoot) reserved property. --- .../Microsoft.Build.BuildEngine/Project.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs b/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs index 6be6c2170b1..4befeb90d8c 100644 --- a/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs +++ b/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs @@ -967,6 +967,7 @@ namespace Microsoft.Build.BuildEngine { throw new Exception (String.Format ("Invalid tools version '{0}', no tools path set for this.", effective_tools_version)); evaluatedProperties.AddProperty (new BuildProperty ("MSBuildBinPath", toolsPath, PropertyType.Reserved)); evaluatedProperties.AddProperty (new BuildProperty ("MSBuildToolsPath", toolsPath, PropertyType.Reserved)); + evaluatedProperties.AddProperty (new BuildProperty ("MSBuildToolsRoot", Path.GetDirectoryName (toolsPath), PropertyType.Reserved)); evaluatedProperties.AddProperty (new BuildProperty ("MSBuildToolsVersion", effective_tools_version, PropertyType.Reserved)); evaluatedProperties.AddProperty (new BuildProperty ("MSBuildExtensionsPath", ExtensionsPath, PropertyType.Reserved)); evaluatedProperties.AddProperty (new BuildProperty ("MSBuildExtensionsPath32", ExtensionsPath, PropertyType.Reserved)); -- 2.25.1