我有一个web应用程序项目(WAP)的解决方案,该项目在Visual中构建和打包。但是,当我运行这个Albacore msbuild任务时,它不起作用。
msbuild :build do |msb|
msb.solution = '../../src/Solution.sln'
msb.targets :clean, :build, :Package
msb.properties = {
:configuration => :Dev
}
end我知道这个错误
项目....Solution.sln中不存在目标“包”
我如何构建一个WAP并使用Albacore和rake制作一个包?
更新:工作任务
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 发布于 2010-12-09 19:28:57
生成解决方案文件时,只能使用以下目标。
如果您试图在Web应用程序项目( WAP )上调用包目标,则可以使用以下语法对该解决方案中的每个WAP调用它。
msbuild YourSolution.sln /p:DeployOnBuild=true;DeployTarget=PackageWAP项目有一个特殊的钩子来在构建过程中调用任何目标。属性DeployOnBuild=true和被调用的目标由DeployTarget属性定义时启用。
我不知道Rake的语法是什么,但如果您可以在这里为其他人张贴它,那将是理想的。
https://stackoverflow.com/questions/4401319
复制相似问题