You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going from an external generator to a SourceGenerator, it is required to know if the SDK supports source generators, and fall back to the existing logic when it doesn't.
This is roughly achievable by looking at the EmitCompilerGeneratedFiles property and seeing if it has a value (it's always set to something when generators are supported), but it would be nice to have a single property that user can check in SDKs going forward.
We should also probably version it, so the MSBuild layer knows what compiler features are available.
The text was updated successfully, but these errors were encountered:
Actually, maybe we should just start embedding the Roslyn version in the targets file, so external tasks can easily calculate what is / isn't supported by version?
chsienki
changed the title
MSBuild tasks don't supply a way to discover if generators are supported
MSBuild tasks should list the roslyn version
Aug 13, 2021
eerhardt
added a commit
to eerhardt/roslyn
that referenced
this issue
Sep 16, 2021
This allows other targets to understand which compiler will be used.
This is useful in the SDK targets that need figure out the version in order to pick the right analyzer assets.
Contributes to dotnet#52265
* Set CompilerApiVersion in Microsoft.Managed.Core.targets
This allows other targets to understand which compiler will be used.
This is useful in the SDK targets that need figure out the version in order to pick the right analyzer assets.
Contributes to #52265
* Fix desktop NuGet package to include the new generated CurrentVersions.targets file.
When going from an external generator to a SourceGenerator, it is required to know if the SDK supports source generators, and fall back to the existing logic when it doesn't.
This is roughly achievable by looking at the
EmitCompilerGeneratedFiles
property and seeing if it has a value (it's always set to something when generators are supported), but it would be nice to have a single property that user can check in SDKs going forward.We should also probably version it, so the MSBuild layer knows what compiler features are available.
The text was updated successfully, but these errors were encountered: