Replies: 2 comments
-
You can develop and consume source generators with nothing but the .NET SDK. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Source generator is a compiler feature, not language feature. It's released since VS16.8/.NET 5 SDK/Microsoft.CodeAnalysis 3.8. To provide a source generator, you need to install the nuget package. To consume a source generator, you should use It's totally OK to use latest SDK to target older frameworks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Assume that I need to have only the compiler which has the phase for source generations and the nugets? So the projects target framework and lang version don't need to change on the assembly level? Is the compiler shipped with .NET 5 SDK?
Beta Was this translation helpful? Give feedback.
All reactions