-
Notifications
You must be signed in to change notification settings - Fork 28
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
OSOE-819: Add Source Generator for keeping version numbers in sync #245
Conversation
...elpfulLibraries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators.Sample/Examples.cs
Outdated
Show resolved
Hide resolved
...elpfulLibraries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators.Sample/Examples.cs
Outdated
Show resolved
Hide resolved
...elpfulLibraries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators.Sample/Examples.cs
Outdated
Show resolved
Hide resolved
...lpfulLibraries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators.Sample/package.json
Outdated
Show resolved
Hide resolved
...aries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/ConstantFromJsonGenerator.cs
Outdated
Show resolved
Hide resolved
...aries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/ConstantFromJsonGenerator.cs
Outdated
Show resolved
Hide resolved
...ies.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/Properties/launchSettings.json
Outdated
Show resolved
Hide resolved
Lombiq.HelpfulLibraries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/Readme.md
Outdated
Show resolved
Hide resolved
Lombiq.HelpfulLibraries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/Readme.md
Outdated
Show resolved
Hide resolved
Lombiq.HelpfulLibraries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/Readme.md
Show resolved
Hide resolved
Hey @sarahelsaig , Thank you for the feedback! I believe I have now addressed all of the changes you suggested. Please let me know if there is anything I missed or if there are additional changes needed. I have created a unit test for the generator but it's currently not actually working the way it is supposed to yet. For some reason it is not generating anything for the class I am trying to inject although it works fine in the sample class (which I have been using for manually testing so far). I might need some help with getting the unit test functional. |
…es.SourceGenerators/Properties/launchSettings.json
...aries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/ConstantFromJsonGenerator.cs
Outdated
Show resolved
Hide resolved
...aries.SourceGenerators/Lombiq.HelpfulLibraries.SourceGenerators/ConstantFromJsonGenerator.cs
Outdated
Show resolved
Hide resolved
Lombiq.HelpfulLibraries.Tests/UnitTests/SourceGenerators/ConstantFromJsonTests.cs
Outdated
Show resolved
Hide resolved
@sarahelsaig Have resolved the remaining issues also |
OSOE-819
Added a source generator to generate constants from JSON values as described in /issues/238
This allows for automatically keeping versions in sync as described in the issue above but also possible other future uses.
The newly added project can be used as a collection of any future generators.
This PR also includes a Sample project, this is not strictly needed and can be removed to prevent clutter, please let me know if that is preferred. But it is an easy way to show how to use the generator and to test.
The Readme Readme.md shows further details on how it works and how to use it.
Fixes #238