Blame SOURCES/msbuild-no-systemconfiguration.patch

b8d0d9
--- a/src/Build/Definition/ProjectCollection.cs
b8d0d9
+++ b/src/Build/Definition/ProjectCollection.cs
b8d0d9
@@ -1754,7 +1754,11 @@ namespace Microsoft.Build.Evaluation
b8d0d9
 #if FEATURE_WIN32_REGISTRY
b8d0d9
                 ToolsetRegistryReader registryReader = null,
b8d0d9
 #endif
b8d0d9
+#if FEATURE_SYSTEM_CONFIGURATION
b8d0d9
                 ToolsetConfigurationReader configReader = null
b8d0d9
+#else
b8d0d9
+                object configReader = null
b8d0d9
+#endif
b8d0d9
                 )
b8d0d9
         {
b8d0d9
             _toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
b8d0d9
--- a/src/Build/Definition/ToolsetReader.cs
b8d0d9
+++ b/src/Build/Definition/ToolsetReader.cs
b8d0d9
@@ -101,7 +101,11 @@ namespace Microsoft.Build.Evaluation
b8d0d9
 #if FEATURE_WIN32_REGISTRY
b8d0d9
             ToolsetRegistryReader registryReader,
b8d0d9
 #endif
b8d0d9
+#if FEATURE_SYSTEM_CONFIGURATION
b8d0d9
             ToolsetConfigurationReader configurationReader,
b8d0d9
+#else
b8d0d9
+            object _configurationReader,
b8d0d9
+#endif
b8d0d9
             PropertyDictionary<ProjectPropertyInstance> environmentProperties,
b8d0d9
             PropertyDictionary<ProjectPropertyInstance> globalProperties,
b8d0d9
             ToolsetDefinitionLocations locations
b8d0d9
@@ -120,6 +124,7 @@ namespace Microsoft.Build.Evaluation
b8d0d9
 
b8d0d9
             if ((locations & ToolsetDefinitionLocations.ConfigurationFile) == ToolsetDefinitionLocations.ConfigurationFile)
b8d0d9
             {
b8d0d9
+#if FEATURE_SYSTEM_CONFIGURATION
b8d0d9
                 if (configurationReader == null)
b8d0d9
                 {
b8d0d9
                     configurationReader = new ToolsetConfigurationReader(environmentProperties, globalProperties);
b8d0d9
@@ -129,6 +134,9 @@ namespace Microsoft.Build.Evaluation
b8d0d9
                 defaultToolsVersionFromConfiguration = configurationReader.ReadToolsets(toolsets, globalProperties,
b8d0d9
                     initialProperties, true /* accumulate properties */, out overrideTasksPathFromConfiguration,
b8d0d9
                     out defaultOverrideToolsVersionFromConfiguration);
b8d0d9
+#else
b8d0d9
+                throw new InvalidOperationException("ToolsetDefinitionLocations.ConfigurationFile not supported");
b8d0d9
+#endif
b8d0d9
             }
b8d0d9
 
b8d0d9
             string defaultToolsVersionFromRegistry = null;