[英]TFS Build Failing. Not adding specific DLL to Bin directory
I've been using TFS to deploy both development and stage builds. 我一直在使用TFS部署开发和阶段构建。 For some reason it is looking for 'Microsoft.Web.Infrastructure' all the sudden, although I don't need it locally to run the project.
由于某种原因,它突然寻找“ Microsoft.Web.Infrastructure”,尽管我不需要在本地运行它。
I've added the mystery DLL (not needed locally) I have checked and 'Copy Local' is set to True. 我添加了已检查的神秘DLL(本地不需要),并且“本地复制”设置为True。
I can deploy the files through Publish Settings doing a File System publish method and the DLL is published. 我可以使用“文件系统”发布方法通过“发布设置”部署文件,然后发布DLL。
However, when I try to push through TFS it is missing that reference to the DLL, all other DLLs copy to the bin folder as expected. 但是,当我尝试通过TFS时,它缺少对该DLL的引用,所有其他DLL都会按预期复制到bin文件夹中。 I can copy the file over directly into the bin and the site works.
我可以将文件直接复制到垃圾箱中,并且该站点可以正常工作。
Has anyone experienced this? 有人经历过吗? Might I have settings incorrect in my TFS Build definition?
TFS构建定义中的设置可能不正确吗? Suggestions?
有什么建议吗?
NOTE: Microsoft.Web.Infrastructure is not in my local GAC 注意:Microsoft.Web.Infrastructure不在我本地的GAC中
I did experience the same thing when I modified my publish file to "Remove additional files at destination", which cleans out everything, and realized that my manual publish was what actually put the files into place. 当我将发布文件修改为“删除目标处的其他文件”时,我确实遇到了同样的事情,这清除了所有内容,并意识到我的手动发布是将文件实际放置到位的。 The solution that I found to get "copy local" working and publishing was to set copy local to false and then flip it back to true.
我发现可以正常工作和发布“本地复制”的解决方案是将“本地复制”设置为false,然后将其翻转回true。 This modified the csproj file so that a new element appeared:
这修改了csproj文件,以便出现一个新元素:
<private>true</private>
I credit this post for helping me figure it out. 我认为这篇文章可以帮助我解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.