From 678effd0fd13d5edb265fb2e9e2c09ea63f72054 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 5 Aug 2024 03:00:32 +0000 Subject: automatic import of dotnet6.0 --- msbuild-no-systemsecurity.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 msbuild-no-systemsecurity.patch (limited to 'msbuild-no-systemsecurity.patch') diff --git a/msbuild-no-systemsecurity.patch b/msbuild-no-systemsecurity.patch new file mode 100644 index 0000000..dcf6809 --- /dev/null +++ b/msbuild-no-systemsecurity.patch @@ -0,0 +1,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 + } -- cgit v1.2.3