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

How to use this and what does this does exactly? #1

Open
aleGuardiola opened this issue Jun 7, 2023 · 5 comments
Open

How to use this and what does this does exactly? #1

aleGuardiola opened this issue Jun 7, 2023 · 5 comments

Comments

@aleGuardiola
Copy link

No description provided.

@musictopia2
Copy link
Owner

The purpose of this library is to use in another source generator. Has helpers for doing attributes.
So the source generator can produce the attributes more easily. Has various functions that determine what gets generated. If you would like a sample, I can send a link to a sample source generator that actually use this.

@aleGuardiola
Copy link
Author

Thanks for replying so fast, and yes I think an example may be helpful

@musictopia2
Copy link
Owner

A good example of a source generator that uses this is this one.
https://github.com/musictopia2/JsonSerializerContextGenerator

This one will generate json files. Uses this so that source generator will produce attributes.
Means instead of having to manually type in the strings for attributes, it uses this one as a helper for generating attributes.

@musictopia2
Copy link
Owner

Another source generator that uses this library is this one.
https://github.com/musictopia2/CommonSourceGeneratorsHelpers

The purpose of that source generator is to generate source for another source generator. I have not found a way to use nuget packages in a source generator. However, its able to use nuget packages when it generates source code. That one generates the common libraries that the source generator would need to use. Even this one is intended to have a source generator write code for another source generator.

@musictopia2
Copy link
Owner

Here is a third one that uses this library as well.
https://github.com/musictopia2/MappingCloningExtensions

Which focuses on extensions for mapping objects and cloning as well.
Since that source generator produces attributes, then this one helps produce the attributes.

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

No branches or pull requests

2 participants