PowerShell脚本构建Visual Studio项目

时间:2011-01-13 05:55:54

标签: visual-studio powershell

在没有开放的visual studio的情况下,是否存在构建visual studio项目的powershell脚本?

1 个答案:

答案 0 :(得分:19)

你甚至不需要电源外壳或视觉工作室。只需使用与.Net一起安装的msbuild程序即可。用法示例如下:

msbuild DBMigration.csproj /p:Configuration=Debug

msbuild位于C:\Windows\Microsoft.NET\Framework\v3.5(或选择您的版本)

还有一个PowerShell构建系统,https://github.com/JamesKovacs/psake