summaryrefslogtreecommitdiff
path: root/msbuild-no-systemsecurity.patch
blob: dcf68098292fe440d569325daa5cffb4bdf2e1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/Shared/ExceptionHandling.cs
+++ b/src/Shared/ExceptionHandling.cs
@@ -153,7 +153,9 @@ namespace Microsoft.Build.Shared
         internal static bool IsXmlException(Exception e)
         {
             return e is XmlException
+#if FEATURE_SECURITY_PERMISSIONS
                 || e is XmlSyntaxException
+#endif
                 || e is XmlSchemaException
                 || e is UriFormatException; // XmlTextReader for example uses this under the covers
         }