Помогите с проблемой.
Есть код,
using System.IO;
using System.Data.SqlClient;
public class t
{
public static void test()
{
}
}
При попытке компиляции его с помощью кода
CompilerParameters options = new CompilerParameters(new string[] { Assembly.GetExecutingAssembly().Location });
options.GenerateInMemory = true;
CSharpCodeProvider provider = new CSharpCodeProvider();
compiler = provider.CreateCompiler();
CompilerResults results = compiler.CompileAssemblyFromSource(options, script);
Выдаеться ошибка :
The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
Причем System.IO хавает, как заставить его скушать System.Data, как добавлять в таком случае reference?
Зврвнее благодарен.