Skip to content

Commit

Permalink
Fix bug resolving included schemas in .NET Core (see https://github.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Mar 6, 2019
1 parent 24ee696 commit 1917375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions XmlSchemaClassGenerator/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ public void Generate(IEnumerable<string> files)
var settings = new XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
var readers = files.Select(f => XmlReader.Create(f, settings));

set.XmlResolver = new XmlUrlResolver();
set.ValidationEventHandler += (s, e) => Trace.TraceError(e.Message);

foreach (var reader in readers)
Expand Down

0 comments on commit 1917375

Please sign in to comment.