diff options
Diffstat (limited to 'mcs/tools/xbuild/SolutionParser.cs')
-rw-r--r-- | mcs/tools/xbuild/SolutionParser.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mcs/tools/xbuild/SolutionParser.cs b/mcs/tools/xbuild/SolutionParser.cs index 7df387b021..92fd84e949 100644 --- a/mcs/tools/xbuild/SolutionParser.cs +++ b/mcs/tools/xbuild/SolutionParser.cs @@ -117,8 +117,16 @@ namespace Mono.XBuild.CommandLine { AddGeneralSettings (file, p); StreamReader reader = new StreamReader (file); + string slnVersion = GetSlnFileVersion (reader); - if (slnVersion == "11.00") + + if (slnVersion == "12.00") +#if XBUILD_12 + p.DefaultToolsVersion = "12.0"; +#else + p.DefaultToolsVersion = "4.0"; +#endif + else if (slnVersion == "11.00") p.DefaultToolsVersion = "4.0"; else if (slnVersion == "10.00") p.DefaultToolsVersion = "3.5"; |