Ich kann eine Lösung mit MSBuild.exe erstellen. Mein Problem ist jedoch, dass ich es nur schaffe, sie im DEBUG-Modus zu erstellen. Ich muss meine Lösung im Release-Modus mit MSBUILD erstellen.
Folgendes habe ich versucht
Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Config=Release");
und
Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Configuration=Release");
MsBuild.exe [Path to your solution(*.sln)] /t:Build /p:Configuration=Release /p:TargetFramework=v4.0