-
Notifications
You must be signed in to change notification settings - Fork 67
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
ProxyTypesAssemblyAttribute is generated multiple times on each entity class #408
Comments
After looking at code, seems the logic of Based on above investigation, I think the default value of parameter |
Just looking at the code, I agree your code fix looks like a it will solve your problem. What I don't understand is why I'm not having the same problem. Any chance you can send me your builderSettings.json file? It should be in the same directory as your DLaB.EarlyBoundGenerator.Settings.xml file. I'd like to test why this is failing for, to make sure I don't break something else with your fix. |
Sure, I removed some sensitive names and namespace, but the settings are same as I'm using. |
Thank you! I was able to determine that the issue you're experience is due to you having separate files for entities, but not for OptionSets. Fix has been pushed to nuget, will push to the XTB soon |
2.2023.4.24 should be pushed |
Appreciate your quick action! |
And I appreciate getting the JSON file and for spending the time to do a PR! |
Hi |
@JepperJay can you send me your builder settings Json file? |
Here you go, and thanks a lot |
@jarvan-jiang You are setup to not create a service context, do you manually add your own Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()? Or do you just not have one at all? |
Sorry just saw it now... |
Tool and Version
What tool/version is it that you're reporting a bug for? i.e.
EarlyBoundGenerator V 2.2023.4.17
Describe the bug
When use generator V2, and set 'Create one file per entity' to true, the class is generated correctly, but each class file contains
[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()]
And this lead to compiler error CS0579.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Entity class generated and able to compile success.
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: