Blame SOURCES/msbuild-no-systemsecurity.patch

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