From 2105ec8cc150b32a8607ac3d6e9978a697039ecb Mon Sep 17 00:00:00 2001 From: Davyd McColl Date: Sun, 6 Sep 2020 20:08:53 +0200 Subject: [PATCH] :recycle: XmlRenderSettings::ProhibitDtd is obsolete in netstandard 2.0 --- src/log4net/Config/XmlConfigurator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log4net/Config/XmlConfigurator.cs b/src/log4net/Config/XmlConfigurator.cs index c9637309..02795fd1 100644 --- a/src/log4net/Config/XmlConfigurator.cs +++ b/src/log4net/Config/XmlConfigurator.cs @@ -721,7 +721,7 @@ static private void InternalConfigure(ILoggerRepository repository, Stream confi // is obsolete: 'Use XmlReaderSettings.DtdProcessing property instead.' #if NETSTANDARD1_3 // TODO DtdProcessing.Parse not yet available (https://github.com/dotnet/corefx/issues/4376) settings.DtdProcessing = DtdProcessing.Ignore; -#elif !NET_4_0 && !MONO_4_0 +#elif !NET_4_0 && !MONO_4_0 && !NETSTANDARD2_0 settings.ProhibitDtd = true; #else settings.DtdProcessing = DtdProcessing.Ignore;