简体   繁体   English

使用Visual Studio 2010进行部署/发布时,某些dll丢失

[英]Some dlls go missing during deployment/publishing with Visual Studio 2010

I'm working with VSTO Outlook Add-In build with Visual Studio 2010. I'm using the same version of Visual Studio on Windows 10. 我正在使用Visual Studio 2010的VSTO Outlook加载项生成。我正在Windows 10上使用同一版本的Visual Studio。

In the references of the of the project there is System.Net.Http . 在该项目的参考中有System.Net.Http However, when I publish the project, I can't see System.Net.Http.dll.deploy or anything like it. 但是,当我发布项目时,看不到System.Net.Http.dll.deploy或类似的内容。 When I install the Add-In and run, I get the exception: 安装外接程序并运行时,出现异常:

Could not load file or assembly 'System.Net.Http, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Can someone help? 有人可以帮忙吗? How can I fix this? 我怎样才能解决这个问题? During debugging there's no issue. 在调试过程中没有问题。 I don't get the same error. 我没有得到同样的错误。 Only when I deploy to UAT I get this. 仅当我部署到UAT时,我才知道这一点。 Thanks. 谢谢。

尝试进入“项目引用”,然后选择“ System.Net.Http.dll”,并检查“复制本地”是否设置为“ True”,如果没有,则将其设置为True,然后重建项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM