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
The incremental source generators allow optimizing the code generation strategies for faster execution, which greatly benefits the overall IDE experience. It is possible to share common code between both approaches and then package the source generator for Roslyn3.x for backward compatibility and the incremental source generator for Roslyn4 together into the same package.
The other trick to make it work for older versions that don't support "Roslyn Component Versioning" is the targets file they include in the package's build folder
The incremental source generators allow optimizing the code generation strategies for faster execution, which greatly benefits the overall IDE experience. It is possible to share common code between both approaches and then package the source generator for Roslyn3.x for backward compatibility and the incremental source generator for Roslyn4 together into the same package.
How that is done can be seen in
https://github.com/dotnet/runtime/tree/main/src/libraries/System.Text.Json/gen
The other trick to make it work for older versions that don't support "Roslyn Component Versioning" is the targets file they include in the package's build folder
See also dotnet/sdk#20355
The text was updated successfully, but these errors were encountered: