-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate classes without DataAnnotations #314
Comments
This is currently not possible. What does the generated code look like? |
OK I'll try and make this configurable. I won't be getting to it until next week, though. |
That's awesome to hear! The project where I'm using this tool will still be a while away, so it's no problem to wait for a little. Plus I think anyone using this tool on Unity projects would appreciate that configuration option. As I've read on many forums these DataAnnotations due to being in a different .dll than the rest are a pain in the ass (even outside of Unity projects). |
There already is support for this feature through the |
Is it possible to generate C# classes without the DataAnnotations?
I'm using the generated classes inside Unity and I got an error:
Assets\Scripts\Integrations\OpenDrive\XsdSchemas\out\Integrations.OpenDRIVE.cs(4987,48): error CS1069: The type name 'RequiredAttributeAttribute' could not be found in the namespace 'System.ComponentModel.DataAnnotations'. This type has been forwarded to assembly 'System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' Consider adding a reference to that assembly.
and I can't add that reference to the project (I won't be even using those features).
Thank you :)
The text was updated successfully, but these errors were encountered: