ClickOnce:获取 MSVCRT C++ 用户计算机上的 DLL
我一直在拼命尝试让我的应用程序(15 个 C# dll 和 1 个带有 C++ 运行时 DLL 依赖项的 C++/CLI dll)使用 ClickOnce 进行部署。 我通过 只需复制 Release 文件夹,但 ClickOnce 拒绝复制文件(msvcm80.dll、msvcp80.dll 和 msvcr80.dll)并将其部署到此文件夹中。
我做了这个疯狂的解决方法(提供 msvcm80.dll、msvcp80.dll 和 msvcr80.dll 作为内容/复制如果较新,然后在启动时创建 Microsoft.VC80.CRT 文件夹,复制这些 DLL,并创建 Microsoft.VC80.CRT。清单)似乎有效,但这一切对我来说都是错误的。
我错过了什么吗?
I've been trying desperately to get my application (15 C# dlls and 1 C++/CLI dll with C++ Runtime DLL dependencies) to deploy with ClickOnce. I got it to work by just copying the Release folder, but ClickOnce refuses to copy the files (msvcm80.dll, msvcp80.dll and msvcr80.dll) and deploy them in this folder.
I did this nutty workaround (supply msvcm80.dll, msvcp80.dll and msvcr80.dll as Content/Copy If Newer and then at startup, create the Microsoft.VC80.CRT folder, copy those DLLs, and create Microsoft.VC80.CRT.manifest) that seems to work, but this all just feels wrong to me.
Am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很愚蠢:我刚刚发现了这个:
在我的启动项目的“属性”页面的“发布”选项卡上:单击先决条件...按钮> 检查 Visual C++ 运行时库,单选按钮设置:从组件供应商的网站下载先决条件。
它似乎按照人们预期的方式工作!
I'm stupid: I just found this:
On Publish tab of Properties page of my startup project: click Prerequisites... button > check Visual C++ Runtime Libraries, radio button setting: Download prerequisites from the component vendor's web site.
It seems to work the way one might expect!
微软应该有一个 msi 可以为你部署这些。 我使用...
说明
并下载vcredist_x86.exe下载
There should be a msi from microsoft that deploys those for you. I used....
instructions
and download vcredist_x86.exedownload