-
Notifications
You must be signed in to change notification settings - Fork 627
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
[4.0] Embedded license handling for binding generator #836
Conversation
Thanks a ton! I'll leaf through it and give you some feedback :) Fair warning, I'm a nitpicky arse :P |
Looks like a solid approach - I like it. Some layout issues, spotted a bug, and had a thought about using Lazy instead of manually checking a backing field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the code where you get the manifest resource stream - I commented on @Nihlus' review. Also, don't forget to test this!
@DylanFPS Is there a rule for testing internal classes (e.g. location in the source tree, language used) etc.? |
Just make sure it works, and do it however. And make sure you delete all testing code after you’ve verified it works. |
* Renamed LicenseResource to EmbeddedResources. * Removed Property LicenseText from GeneratorSettings classes. * Modified BindingWriter to access the license text via embedded resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Close!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the license header myself
Thanks for the contribution @dnstag - We really hope to see more of this in the future! |
You will! I'm glad i could help. :) |
[WIP] must be removed |
@VPeruS Thanks. We just added a check for that before merging now. |
Purpose of this PR
As of #829, the
LicenseText
property inGeneratorSettingsBase
(including parent and child classes) contains actual license data which should be in another place. This PR will implement a class which loads the license file as an embedded resource acessible via property and changes affected classes accordingly.The PR is marked as WIP as this is my first PR, so please feel free to review and discuss as i commit more changes.
Oh and please... be gentle. :)
Testing status
Sucessfully tested with the text in Specifications/License.txt.
Related
Resolves #829