5
我有一个Web应用程序项目(WAP)的解决方案,它在Visual Studio中构建和打包。但是,当我运行此Albacore msbuild
任务时,它不起作用。如何使用Albacore的msbuild任务构建.NET Web应用程序项目?
msbuild :build do |msb|
msb.solution = '../../src/Solution.sln'
msb.targets :clean, :build, :Package
msb.properties = {
:configuration => :Dev
}
end
我得到这个错误
“套餐” 不存在于该项目的目标.... Solution.sln
如何建立一个WAP和作出使用长鳍金枪鱼和耙子的包?
更新:工作任务
msbuild :build do |msb|
msb.solution = '../../src/Solution.sln'
msb.targets :clean, :build
msb.parameters = '/p:DeployOnBuild=true;DeployTarget=Package'
msb.properties = {
:configuration => :Dev
}
end