In-memory C# compilation using Roslyn

added by DotNetKicks
12/29/2016 2:10:37 PM

3 Kicks, 419 Views

Recently I've been hard at work on my first Visual Studio Code extension and one of the requirements is to extract IL from a .dll binary. This introduces a question though, do I build the solution (blocking the user whilst their project is building), read the .dll from disk then extract the IL, or do I compile the project in memory behind the scenes, then stream the assembly to Roslyn?


0 comments