title: Possible to set absolute path for references in CSharpCodeProvider?
body: <p>I'm creating new .cs-files with CodeDom and later want to compile/run them with CSharpCodeProvider but having some problem with references. </p>
  
  <p>The code look like this: </p>
  
  <pre><code>        var provider = new CSharpCodeProvider();
          var compilerparams = new CompilerParameters(
              new[]
              {
                  "First.dll",
                  "Second.dll"
              })
          {
              GenerateExecutable = false,
              GenerateInMemory = true
          };
          CompilerResults results = provider.CompileAssemblyFromFile(compilerparams, _path);
          if (!results.Errors.HasErrors)
              return results.CompiledAssembly;
          var errors = new StringBuilder("Compiler Errors :\r\n");
          foreach (CompilerError error in results.Errors)
          {
              errors.AppendFormat("Line {0},{1}\t: {2}\n",
                  error.Line, error.Column, error.ErrorText);
          }
          throw new Exception(errors.ToString());
  </code></pre>
  
  <p>"First.dll" and "Second.dll" exists in the same folder as my generated .cs-files and if I run it directly I get error. If I move them to my projects bin directory it work fine, but I would rather just keep them seperated. </p>
  
  <p>Is it possible to set absolute path for "First.dll" and "Second.dll" or a path to a directory that contains all my references instead of moving them to my bin-directory? </p>
  
  <p>I tried to change CompilerParameters to absolute paths but that didn't help. </p>