P pnp May 24, 2005 #1 Is there a way to make a simple compiler that builds cs projects in a solution? thanks in advance, peter
Is there a way to make a simple compiler that builds cs projects in a solution? thanks in advance, peter
G Guest May 24, 2005 #2 Hi, You can use the following command in a batch file (.bat) devenv "<solutionfile>" /build "<debug/release>" This builds all the projects under the .sln file
Hi, You can use the following command in a batch file (.bat) devenv "<solutionfile>" /build "<debug/release>" This builds all the projects under the .sln file
L Lebesgue May 24, 2005 #3 Microsoft.CSharp.CSharpCodeProvider p = new CSharpCodeProvider(); ICodeCompiler compiler = p.CreateCompiler(); CompilerParameters options = new CompilerParameters(new string[] {"mscorlib.dll", "System.dll"}, myOutputAssemblyPath, true); CompilerResults res = compiler.CompileAssemblyFromFileBatch(options, fileNames); CompilerErrorCollection errors = res.Errors; Assembly a = res.CompiledAssembly;
Microsoft.CSharp.CSharpCodeProvider p = new CSharpCodeProvider(); ICodeCompiler compiler = p.CreateCompiler(); CompilerParameters options = new CompilerParameters(new string[] {"mscorlib.dll", "System.dll"}, myOutputAssemblyPath, true); CompilerResults res = compiler.CompileAssemblyFromFileBatch(options, fileNames); CompilerErrorCollection errors = res.Errors; Assembly a = res.CompiledAssembly;