PowerShell脚本构建Visual Studio项目
答
你甚至不需要电源外壳或视觉工作室。只需使用与.Net一起安装的msbuild程序。使用示例是这样的:
msbuild DBMigration.csproj /p:Configuration=Debug
的MSBuild位于C:\Windows\Microsoft.NET\Framework\v3.5
(或选择您的版本)
还有一个PowerShell构建系统,https://github.com/JamesKovacs/psake