summaryrefslogtreecommitdiff
path: root/msbuild-no-systemsecurity.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 16:05:09 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 16:05:09 +0000
commit9a52b2875a2d814a19ffcee56bd6b962b994dfcb (patch)
tree551246daead1fa0c2e4a17a7e22208b13be88bbb /msbuild-no-systemsecurity.patch
parentaf7c3c9716770d937544687b482bf62e866193de (diff)
automatic import of dotnet6.0openeuler24.03_LTSopeneuler23.09
Diffstat (limited to 'msbuild-no-systemsecurity.patch')
-rw-r--r--msbuild-no-systemsecurity.patch12
1 files changed, 12 insertions, 0 deletions
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
+ }