CodeDom を使用してコードを動的にコンパイルしようとしています。他のアセンブリを読み込めますが、System.Data.Linq.dll を読み込めません。エラーが発生します:
メタデータ ファイル 'System.Data.Linq.dll' が見つかりませんでした
私のコードは次のようになります:
CompilerParameters compilerParams = new CompilerParameters();
compilerParams.CompilerOptions = "/target:library /optimize";
compilerParams.GenerateExecutable = false;
compilerParams.GenerateInMemory = true;
compilerParams.IncludeDebugInformation = false;
compilerParams.ReferencedAssemblies.Add("mscorlib.dll");
compilerParams.ReferencedAssemblies.Add("System.dll");
compilerParams.ReferencedAssemblies.Add("System.Data.Linq.dll");
何か案は?