mamift / LinqToXsdCore

LinqToXsd ported to .NET Core (targets .NET Standard 2 for generated code and .NET Core 3.1, .NET 5+ for the code generator CLI tool).
Microsoft Public License
43 stars 15 forks source link

Double includes are not ignored. #14

Open EddieDemon opened 4 years ago

EddieDemon commented 4 years ago

Hello,

According to the help function of the tool, when there are multiple includes/imports are detected, they only get included once. This doesn't seem to be working. Is there any flag I must set to get this to works?

I'm using 143 XSD-files (6,09MB) which end up in +/- 54MB of code. So I really need splitting up the files.

mamift commented 4 years ago

You wouldn't happen to be will to share those XSD files would you, so I can debug this? The xs:include/import resolution logic I programmed was meant to handle recursive includes/imports when the inclusion forms from a chain.

Similar to File1->File2->File1. If it becomes File1->File2, File2->File3->File1 then it will probably screw up.

EddieDemon commented 4 years ago

Not able to share the code due to the license of our supplier. But I could narrow it down to this: https://gist.github.com/EddieDemon/d666e524d279269edd42860414a56410

I noticed that the configuration generator didn't like the namespace (just plain C.) I do imagine that this could be a problem at conversion time.