在另一个项目解决方案上运行 MSBuild

<PropertyGroup>
    <LinkedSolution>LinkedSolution.sln</LinkedSolution>
    <BuildType>Build</BuildType> <!-- Build / Rebuild -->
    <BuildArchitecture>x86</BuildArchitecture> <!-- x86 / 64 -->
    <BuildConfiguration>Debug</BuildConfiguration> <!-- Debug / Release -->
</PropertyGroup>
<MSBuild Projects="$(LinkedSolution)"
         Targets="$(BuildType)" 
         Properties="Architecture=$(BuildArchitecture);Configuration=$(BuildConfiguration)" />