Why do source generators still require netstandard2.0
?
#72777
Unanswered
colejohnson66
asked this question in
General
Replies: 2 comments 6 replies
-
They need to be called from .NET (Core) and .NET Framework contexts. Visual Studio is still, in some way, built atop .NET Framework, so source generators must remain compatible. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This isn't limited to source generator. Roslyn itself still need to target netstandard2.0 to support VS. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Roslyn source generators are stuck at
netstandard2.0
. Is there a reason why? We are missing modern APIs that require adding NuGet package references and writing logic to bundle them into thenupkg
. Record types also can't be used unless one adds a polyfill forSystem.Runtime.CompilerServices.IsExternalInit
. Each year, the set of usable APIs grows further and further apart from what we should have.Are there any plans to address these limitations? If not, why?
Beta Was this translation helpful? Give feedback.
All reactions