This repository has been archived by the owner on Dec 12, 2020. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add GeneratorInConsumerSolution sample #152
Add GeneratorInConsumerSolution sample #152
Changes from 2 commits
b00626b
ae7a180
962cbd9
5df32cb
a948f29
0d830b2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
GeneratorInConsumerSolution
This solution contains two projects: Generator and Consumer. Generator contains the generator that is used by the Consumer.
The sample generator creates a partial declaration of the
[GeneratedId]
-annotated type (class/struct) that contains an additional auto-property:Usage Note
Please note that because
Directory.Build.props
by default uses*
Version, NuGet will resolve that to the latest stable version. Most often is not what you want, so please replace that version with the one you want to test.Also, if you're validating your development with the sample, please remember that after NuGet once restores a version, it'll cache it in the default
packages
folder - to use new Package with the same version string, you'll need to delete cached packages from that folder.