Skip to content

Commit

Permalink
♻️ XmlRenderSettings::ProhibitDtd is obsolete in netstandard 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffynuts committed Sep 6, 2020
1 parent fd53aa1 commit 2105ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log4net/Config/XmlConfigurator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2105ec8

Please sign in to comment.