I am running the build command like this:
set MSBuildParams=/m:16 /target:Rebuild /property:Configuration=""Release"";Platform=""x64"" msbuild %MSBuildParams% C:\path\to\the\sln\Solution.sln
I'm using the following msbuild version: Microsoft (R) Build Engine version 14.0.25420.1
Solution.sln contains 2 projects,
- let's say Project1 and Project2.
- Project1 is set as the startup project.
- After I build the Solution.sln using this setup, I would like to rebuild it, but this time using Project2 as the startup project.
Is there a way to do that, without changing the Solution.sln? What would be the best practice to accomplish that?