[xbuild] Override global properties before project Load.
authorAnkit Jain <radical@corewars.org>
Wed, 4 Aug 2010 11:08:56 +0000 (16:38 +0530)
committerAnkit Jain <radical@corewars.org>
Wed, 4 Aug 2010 11:08:56 +0000 (16:38 +0530)
commitdf7c9081e8939da2939d5c50deae98c7d061c4f6
tree6fab6b2cf5b7063d3e3cda077cfdd3f5977943e6
parent71992148d7e88ec6d1b83dd68e22f0753c715b1f
[xbuild] Override global properties before project Load.

MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.

 <Import Project="$(SolutionDir)\foo.targets"/>

$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.

    * Microsoft.Build.BuildEngine/Engine.cs:
    Apply global properties before the project load.

    * Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.
mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Engine.cs
mcs/class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/EngineTest.cs [changed mode: 0644->0755]