Reputation: 177
I am using Roslyn for some code generation in one of my C# projects. Currently Roslyn will take the entire project, compile it from scratch, then spit out the code I want. This takes a full recompile to do, which is a little slow. When Visual Studio compiles a project it doesn't do it from scratch every time, it does something smart and only re-compiles the parts that have changed. Is there some way to do this with Roslyn?
Upvotes: 0
Views: 798
Reputation: 3293
Visual Studio (in the upcoming version) uses Roslyn to compile the code (to IL). For a single project that is not incremental and never was.
Upvotes: 3
Reputation: 833
I may be wrong as I'm not sure about Roslyn, but you may be able to seperate the Roslyn code into another solution and have a seperate solution for your own code.
After that you can simply build the solution that changes all the time.
Upvotes: 1