You should use MSBuild.exe or csc.exe instead of devenv.exe .
const string COMPILER = "PATH/TO/DEV/TOOLS/msbuild.exe"; // later in code psinfo = new ProcessStartInfo(COMPILER, "PATH\TO\PROJECT\PROJECT_NAME.sln /t:Rebuild /p:Configuration=Release");
Compiling with devenv requires more options (and , I think, some project information needs to be added):
psinfo = new ProcessStartInfo(DEVENVPATH, @"""c:\Projects\[--pathtoproject--].sln"" /build RELEASE");
source share