which dll contains generics extension methods?
c#, dll, extension-methods
Solution
Have a look at this blog post. You have to specify the compiler version manually when calling the `CSharpCodeProvider` constructor that receives a dictionary. Like this:
var provider = new CSharpCodeProvider(new Dictionary<string, string>{
{"CompilerVersion", "v3.5"} });
Problem
I'm trying to dynamically compile source code using the CodeDom.Compiler stuff, which means I need to reference the basic assemblies manually. The source code that I am compiling must be able to access the basic list extension methods, for for instance, Max(), Min(), or Sum(), and probably lambda expressions as well. When I compile the source, it says I'm missing the required assembly... currently I include System.dll, and System.Core.dll. Which dll do I need to get the extension methods for generics?