roslyn-linq-rewrite icon indicating copy to clipboard operation
roslyn-linq-rewrite copied to clipboard

Compiler step instead of replacing compiler

Open ZacLiveEarth opened this issue 8 years ago • 1 comments

I'm hesitant to plug this in to our existing project because it looks like a wholesale replacement of the compiler (correct me if I'm wrong). Is there a way to plugin this in as a build step and still use the regular compiler from Microsoft?

ZacLiveEarth avatar Nov 16 '16 17:11 ZacLiveEarth

This tool wraps the original, unmodified C# compiler, and performs transformations on the syntax trees as an intermediate step. Here you can see how to use RoslynLinqRewrite programmatically. Potentially, you could for example save the transformed ASTs to the file system and then compile or process them in a different way.

antiufo avatar Nov 16 '16 17:11 antiufo