Blame SOURCES/msbuild-no-systemsecurity.patch

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