简体   繁体   English

从.net dll参考C ++运行时dll

[英]Reference C++ Runtime dll from .net dll

I have a .net dll that requires msvcp110.dll to run. 我有一个需要msvcp110.dll才能运行的.net dll。 When I use my .net dll in another app the app gives dependency errors. 当我在另一个应用程序中使用.net dll时,该应用程序显示依赖项错误。 However, when I set the output path of my app to the same folder that contains msvcp110.dll it runs. 但是,当我将应用程序的输出路径设置为包含msvcp110.dll的相同文件夹时,它将运行。

Is there some way I can reference msvcp110.dll in my .net dll such that consumers of my dll only have to add a reference to it for their app to run? 有什么方法可以在.net dll中引用msvcp110.dll ,以便使我的dll的使用者只需添加对它的引用即可运行他们的应用程序?

Thanks! 谢谢!

For the sake of completeness this seems to be the answer: 为了完整起见,这似乎是答案:

Visual C++ 2010: Changes to MSVC runtime deployment (no more SxS with manifest) Visual C ++ 2010:对MSVC运行时部署的更改(不再具有清单的SxS)

I tried installing my dll to the GAC but to no avail - my app still complained about missing dependencies such as msvcr100.dll 我尝试将dll安装到GAC,但无济于事-我的应用仍然抱怨缺少依赖项,例如msvcr100.dll

o_O o_O

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

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