为什么这个 Albacore msbuild 任务无法复制这个 Web 项目程序集?
我们在 TeamCity 中使用 Rake 和 Albacore 进行构建和部署过程。但是,我最新的解决方案在编译时出现问题。当我运行 msbuild
任务时,出现以下错误:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets(60,3):错误 MSB3021:无法 将文件“bin\admin.web.dll”复制到“C:/src/Trunk/admin/output/_PublishedWebsites\web\bin\admin.web.dll”。找不到文件“bin\admin.web”。 dll'。
网站项目的构建输出路径设置为bin\
。当在 Visual Studio 中构建时,它可以很好地复制。但是,通过 Rake 构建是行不通的。我的编译 ruby 文件将 :outdir
设置为 'output/_PublishedWebsites'
,并且它可以很好地复制我的所有其他解决方案。
这是一个极端的情况,但它让我痛苦 - 有人有什么想法吗?
We're using Rake with Albacore for our build and deploy process in TeamCity. But, my latest solution has problems when compiling. When I run the msbuild
task, I get this error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets(60,3): error MSB3021: Unable to
copy file "bin\admin.web.dll" to "C:/src/Trunk/admin/output/_PublishedWebsites\web\bin\admin.web.dll". Could not find file 'bin\admin.web.
dll'.
The build output path for the website project is set to bin\
. And it copies fine when built in Visual Studio. But, building through Rake doesn't work. My compilation ruby file has the :outdir
set to 'output/_PublishedWebsites'
and it copies fine for all my other solutions.
It's an edge case but it's causing me pain - anybody got any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
感谢大家的帮助,但这并不是 msbuild 任务所特有的。该解决方案有 3 个 Web 项目 &其中之一将 bin 目录包含在 VS 的解决方案中。我所需要做的就是从解决方案中排除&构建和发布工作正常 - 不再有锁定。
Thanks for everyone's help but it isn't anything specific to the msbuild task. The solution had 3 web projects in it & one of them had the bin directory included in the solution in VS. All I needed to do was exclude from the solution & the build & publish works fine - no more locking.
执行的完整 msbuild 命令是什么?
编辑很确定这是一个路径问题。我使用
如果您发布 ms build 命令,或者至少发布 albacore 配置,那么帮助会更容易;)
您正在构建什么项目?它有什么依赖关系?
whats the full msbuild command that gets executed?
Edit pretty sure its a path issue. I use
If you post the ms build command, or at least the albacore config it would be much easier to help ;)
What project are you building? what dependencies does it have?