Ken Brubaker

The ClavèCoder

<October 2008>
SuMoTuWeThFrSa
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678


Navigation

Subscriptions

News

Kenneth Brubaker
Senior Application Architect

Locations of visitors to this page

Post Categories



Compiling C# 3.0 during runtime

This post explains how to get the CSharpCodeProvider compile C# 3.0 code.

 

Here's the magic line:

var csc = new CSharpCodeProvider(new Dictionary() { { "CompilerVersion", "v3.5" } });

posted on Friday, August 10, 2007 4:04 PM by kenbrubaker





Powered by Dot Net Junkies, by Telligent Systems