[xbuild] Add $(MSBuildToolsRoot) reserved property.
authorAnkit Jain <radical@corewars.org>
Sun, 27 Feb 2011 19:04:44 +0000 (00:34 +0530)
committerAnkit Jain <radical@corewars.org>
Sun, 27 Feb 2011 21:40:14 +0000 (03:10 +0530)
mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs

index 6be6c2170b1d8f3b07338db5609aa8f0797ea6f7..4befeb90d8c354a14a38041bbba69017d1b9fe8b 100644 (file)
@@ -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));