Blame SOURCES/msbuild-no-systemconfiguration.patch

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