[xbuild] Fix mscorlib resolution for custom frameworks
authorMichael Hutchinson <m.j.hutchinson@gmail.com>
Tue, 11 Feb 2014 19:30:53 +0000 (14:30 -0500)
committerMichael Hutchinson <m.j.hutchinson@gmail.com>
Tue, 11 Feb 2014 19:30:53 +0000 (14:30 -0500)
commitc705849b5926c48af24e1bfca253b01e909f5b86
treed30a494848a473e70d60c4ec55327637367b1431
parent85fbadafd01367b8a040c3e572a9ded91e3b5ab9
[xbuild] Fix mscorlib resolution for custom frameworks

Now that mcs supports multi-targeting, we can use the MSBuild 4.0+
system of finding mscorlib.dll in the target framework folders and
passing it to the compiler, along with the /nostdlib argument.

Like MSBuild, the old NoStdLib property can be set to true to disable
passing mscorlib.dll to the compiler, and the new NoCompilerStandardLib
property can be set to false to disable passing /nostdlib to the compiler.

This makes custom target frameworks work correctly without having to
override CscExe with a wrapper script.
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs
mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolLocationHelper.cs
mcs/tools/xbuild/Makefile
mcs/tools/xbuild/data/12.0/Microsoft.CSharp.targets [new file with mode: 0644]
mcs/tools/xbuild/data/12.0/Microsoft.Common.targets
mcs/tools/xbuild/data/2.0/Microsoft.CSharp.targets [new file with mode: 0644]
mcs/tools/xbuild/data/3.5/Microsoft.CSharp.targets [new file with mode: 0644]
mcs/tools/xbuild/data/4.0/Microsoft.CSharp.targets [new file with mode: 0644]
mcs/tools/xbuild/data/4.0/Microsoft.Common.targets
mcs/tools/xbuild/data/Microsoft.CSharp.targets [deleted file]
mcs/tools/xbuild/xbuild_test.make