Comments (4)
Hello, yes I'm aware of this and did try separating out the C# code that only does code generation to it's own library in an attempt to bring down the .NET Standard version for the output code, but was never able to finish.
I can't specifically recall the reasons why, but I think a few interfaces were shared between the code that handled typed XML traversal and code that does code generation, and a proper & clean split that would've meant 3 libraries instead of just 2.
I thought at the time that was unnecessary, but I'm not philosophically opposed to it if that's what it takes to separate out the code.
from linqtoxsdcore.
I'm interested in at least giving it a shot, if it doesn't get ridiculously messy.
Is there any list or way to know what classes / public API the generated code actually needs? Or at least some roots and I'll work transitively from that?
Figuring out from the code generator what API might be used in every situation is kind of hard. :(
from linqtoxsdcore.
I had a glance at the project structure.
So currently we have:
LinqToXsd
, references XObjectsCore
XObjectsCore
, references XObjectsCode
XObjectsTests
references LinqToXsd
+ XObjectsCore
Looks like the shared code in XObjectsCode
is not really shared as only XObjectsCore
reference it.
I would try to:
- Keep in
XObjectsCore
what's required by the runtime only, no references to other projects and no reference to CodeDom. - Either merge all the rest directly into
LinqToXsd
, or turnXObjectsCore
into a real lib that could be published on Nuget and is referenced by the CLI projectLinqToXsd
.
I would not remove any public API, nor rename them nor the namespaces. Just try to move stuff around and do the minimal changes required to cut the dependency on CodeDom from XObjectsCore
.
from linqtoxsdcore.
@mamift Please have a look at #27, removing CodeDom turned out to be not too bad.
from linqtoxsdcore.
Related Issues (20)
- Modify the LinqToXsd program such that it will emit one xml namespace to one corresponding c# file. HOT 13
- Empty namespace is not mapped when generating config file HOT 1
- Null Reference Exception with ILinqToXsdTypeManager HOT 2
- The content model inheritance is broken for types derived by restriction.
- Composite content model code is not generated.
- Missing null check in a ToXTypedElement of XTypedServices.cs
- maxOccurs="unbounded", is not respected for elements in choice block
- Eager/deferred/lazy? HOT 1
- error CS1061: 'object' does not contain a definition for 'TypeDefinition' HOT 8
- Generated code doesn't compile if an element is named Content HOT 3
- LinqToXsd config -e file.xsd does not gather all sub-namespaces
- Integrate core xml.xsd into the LinqToXsdCore library
- No globa:: prefix for BuildWrapperDictionary
- Nice to have: Load and Parse overloads with LoadOptions
- Parsing error when nullable elements with empty value and "xsi:nil"=true attribute HOT 3
- Schema versioning?
- [regression in v3.4.3+] error CS0108: OneField of ParentType hides inherited member OneField of ChildType HOT 1
- Support DataAnnotations? HOT 2
- .net 8 version of the tool? HOT 1
- Fixed enum values are generated as string, code does not compile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linqtoxsdcore.