Last active
August 29, 2015 14:21
-
-
Save joymon/0f41b66a1dd4f6703915 to your computer and use it in GitHub Desktop.
Roslyn code snippet for compiling C# code in console application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void TestRoslynCompilation() | |
{ | |
Compilation compilation = GetSimpleCompilation(); | |
ImmutableArray<Diagnostic> diagnostics = Compile(compilation); | |
ShowDiagnostics(diagnostics); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment