Budowanie rozwiązania C# w trybie Release przy użyciu MSBuild.exe

Jestem w stanie zbudować rozwiązanie używając MSBuild.exe, ale mój problem polega na tym, że mogę go tylko zbudować w trybie debugowania. Muszę zbudować moje rozwiązanie w trybie Release przy użyciu MSBUILD.

Oto co próbowałem

Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Config=Release");

I

Process msbuild = Process.Start("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MsBuild.exe", solutionfilepath + " /P:Configuration=Release");
Author: wonea, 2014-08-25

1 answers

MsBuild.exe [Path to your solution(*.sln)] /t:Build /p:Configuration=Release /p:TargetFrameworkVersion=v4.0
 256
Author: Abdullah Saleem,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2020-10-20 05:59:02