[xbuild] The 4.0 toolset is in the 4.5 directory
authorMichael Hutchinson <m.j.hutchinson@gmail.com>
Thu, 9 Jan 2014 23:27:40 +0000 (18:27 -0500)
committerMichael Hutchinson <m.j.hutchinson@gmail.com>
Fri, 10 Jan 2014 06:11:32 +0000 (01:11 -0500)
mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolLocationHelper.cs

index 9a2ed2c6f9629dd0ff39444b389c478410232459..91441df066993862fa4100538be7fc25ce6c2e22 100644 (file)
@@ -66,7 +66,10 @@ namespace Microsoft.Build.Utilities
                                        Path.Combine (lib_mono_dir, "net_2_0"),
                                        Path.Combine (lib_mono_dir, "net_2_0"),
                                        Path.Combine (lib_mono_dir, "net_3_5"),
-                                       Path.Combine (lib_mono_dir, "net_4_0"),
+                                       // mono's 4.0 is not an actual framework directory with all tools etc
+                                       // it's simply reference assemblies. So like .NET we consider 4.5 to
+                                       // be a complete replacement for 4.0.
+                                       Path.Combine (lib_mono_dir, "net_4_5"),
                                        Path.Combine (lib_mono_dir, "net_4_5"),
                                        Path.Combine (lib_mono_dir, "net_4_5")
                                };      
@@ -86,7 +89,8 @@ namespace Microsoft.Build.Utilities
                                        Path.Combine (lib_mono_dir, "2.0"),
                                        Path.Combine (lib_mono_dir, "2.0"),
                                        Path.Combine (lib_mono_dir, "3.5"),
-                                       Path.Combine (lib_mono_dir, "4.0"),
+                                       // see comment above regarding 4.0/4.5
+                                       Path.Combine (lib_mono_dir, "4.5"),
                                        Path.Combine (lib_mono_dir, "4.5"),
                                        Path.Combine (lib_mono_dir, "4.5"),
                                };