Blame SOURCES/msbuild-no-systemsecurity.patch

6c447a
--- a/src/Shared/ExceptionHandling.cs
6c447a
+++ b/src/Shared/ExceptionHandling.cs
6c447a
@@ -153,7 +153,9 @@ namespace Microsoft.Build.Shared
6c447a
         internal static bool IsXmlException(Exception e)
6c447a
         {
6c447a
             return e is XmlException
6c447a
+#if FEATURE_SECURITY_PERMISSIONS
6c447a
                 || e is XmlSyntaxException
6c447a
+#endif
6c447a
                 || e is XmlSchemaException
6c447a
                 || e is UriFormatException; // XmlTextReader for example uses this under the covers
6c447a
         }