开源地址: https://github.com/cake-build/cake
依赖 powershell 3.0 Windows
获取引导程序:
Invoke-WebRequest http://cakebuild.net/download/bootstrapper/windows -OutFile build.ps1
新建build.cake文件:
var target = Argument("target", "Default"); Task("Default")
.Does(() =>
{
MSBuild("./cakeDemo.sln");
}); RunTarget(target);
在powershell中执形:build.ps1
会 build当前解决方案下的所有项目
更多用法参考: http://cakebuild.net/