Skip to content
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

Merged
merged 13 commits into from
Mar 14, 2024

Conversation

AydinE
Copy link
Contributor

@AydinE AydinE commented Mar 10, 2024

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

@AydinE
Copy link
Contributor Author

AydinE commented Mar 11, 2024

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.

@AydinE
Copy link
Contributor Author

AydinE commented Mar 13, 2024

@sarahelsaig Have resolved the remaining issues also

@sarahelsaig sarahelsaig merged commit 929faca into dev Mar 14, 2024
1 check passed
AydinE added a commit that referenced this pull request Mar 27, 2024
This reverts commit 929faca, reversing
changes made to 749343b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add source generator that reads a JSON value as a const string at compile time. (OSOE-819)
2 participants