IssueRaiser

Allow for a way to ensure some source generators run before / after others

We briefly discussed this during 6.0 / C# 10 but ultimately punted it since the ask came in too late. We've had issues where user-written source generators can no longer observe the output of source generated by Razor's: * https://github.com/dotnet/aspnetcore/issues/32253 * https://github.com/dotnet/aspnetcore/issues/32949 * https://github.com/dotnet/aspnetcore/issues/32172 For 6, the solution we gave our users is to turn off the source generator and fall back to our 2-phase compilation process. We'd made some progress discussing this internally, but filing this for C# 11 consideration.

Posted by pranavkm on Oct 19, 2021, 8:08 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Software)

Allow for a way to ensure some source generators run before / after others

pranavkmOct 19, 2021, 8:08 PM

We briefly discussed this during 6.0 / C# 10 but ultimately punted it since the ask came in too late. We've had issues where user-written source generators can no longer observe the output of source generated by Razor's: * https://github.com/dotnet/aspnetcore/issues/32253 * https://github.com/dotnet/aspnetcore/issues/32949 * https://github.com/dotnet/aspnetcore/issues/32172 For 6, the solution we gave our users is to turn off the source generator and fall back to our 2-phase compilation process. We'd made some progress discussing this internally, but filing this for C# 11 consideration.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue