This is my code:
Microsoft.CSharp.CSharpCodeProvider provider = new CSharpCodeProvider();
ICodeCompiler compiler = provider.CreateCompiler();
CompilerParamet
You could use the OutputAssembly property of CompilerParameters to sets the name (path) of the output assembly.
From your example:
...
CompilerParameters compilerparams = new CompilerParameters();
compilerparams.GenerateInMemory = false;
compilerparams.OutputAssembly = "OutputAssembly.dll";
CompilerResults results = compiler.CompileAssemblyFromSource(compilerparams, code);
...