简体   繁体   English

TFS构建失败。 没有将特定的DLL添加到Bin目录

[英]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.

相关问题 TFS生成不会在Asp.Net MVC项目/ bin文件夹中生成DLL - TFS build doesn't generate DLL in Asp.Net MVC project /bin folder 从/ bin目录加载DLL - Loading DLL from a /bin directory dll未从bin目录加载 - dll not loaded from bin directory Microsoft.Web.Infrastructure没有构建到我的一个TFS构建服务器上的bin目录中 - Microsoft.Web.Infrastructure is not being built to the bin directory on one of my TFS build servers 如何获取bin文件夹中的所有dll文件以通过TFS成功构建到另一台服务器上? - How do I get all dll files within the bin folder to build successfully onto another server via TFS? 我不能没有失败地使用角色。 “发生与网络相关或特定于实例的错误” - I can't use Roles without failing. “A network-related or instance-specific error occurred” ASP.net Bin目录--dll加载 - ASP.net Bin directory - dll loading 成功构建后将dll放在bin目录中 - Placing dlls in bin directory after successfull build 是否有任何理由将DLL添加到您的/ bin目录,但不添加对它的引用? - Is there any reason to add a DLL to your /bin directory, but not add a reference to it? TFS单元测试在开发人员计算机上通过但在构建计算机上失败 - TFS unit tests passing on developer machine but failing on build machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM