-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use roslyn on proxygen instead of codedom #4
Comments
But triggering it via roslyn alanyzer may have performance implication for Visual Studio. So external tool (possibly based on Roslyn) triggered from MSbuild would be better choice. See also dotnet/roslyn#57608 |
For some projects, I have used roslyn directly, i.e.
which is extremely fast and there is no dependency on visual studio or msbuild. |
That's good, much better than my I was warning about https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview |
the dependency is created in the opposite direction with roslyn source generators, they are running your code on each key-press in VS. And that's nasty environment. |
Yeah I know, so far I have used roslyn functionality directly for both analyzing and code generation and it works very well. But it needs some custom layer to translate your intentions to roslyn calls, because it can become painful:
|
Yes, I generated this example with this :) |
It's better to generate code with roslyn, codedom is obsolete
The text was updated successfully, but these errors were encountered: