mirror of
https://abf.rosa.ru/djam/dotnet6.0.git
synced 2025-02-23 06:03:00 +00:00
13 lines
478 B
Diff
13 lines
478 B
Diff
![]() |
--- 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
|
||
|
}
|