[英]Running C++ Redistributable files from a Probing Folder
I'm currently having an issue with "Probing" dlls from another folder. 我当前在从另一个文件夹“探测” dll时遇到问题。 Specifically the C++ Redistributable files that my application is dependent on and that I have just included in my folder to avoid having to run an installer.
特别是我的应用程序所依赖的C ++可再发行文件,并且我刚刚将其包含在文件夹中以避免运行安装程序。
The application runs successfully if these files are in the same folder as the exe: 如果这些文件与exe位于同一文件夹中,则该应用程序将成功运行:
However when I in my App.config of my application try to probe dlls to 2 other folders, none of them is loaded upon execution of the .exe. 但是,当我在应用程序的App.config中尝试将dll探查到其他2个文件夹时,在执行.exe时不会加载它们。
<probing privatePath="DataResources/cefsharp;DataResources/miscellaneous" />
The DLLS are located in the DataResources/miscellaneous
folder. DataResources/miscellaneous
位于DataResources/miscellaneous
文件夹中。 The DLLS from DataResources/cefsharp
(which are some of my other dlls) ARE loaded however. 但是,已
DataResources/cefsharp
(这是我的其他一些dll)。
Does anyone know what the issue could be? 有人知道这个问题可能是什么吗? Thank you very much!
非常感谢你!
So it turns out that when it comes to these files, CefSharp is dependent on them being in the exact same folder as the CefSharp files themself. 因此,事实证明,涉及这些文件时,CefSharp依赖于它们与CefSharp文件本身位于同一文件夹中。 In my case, moving these files to the CefSharp folder did the trick.
就我而言,将这些文件移动到CefSharp文件夹即可。
This is probably not the case in others circumstances but if you are using CefSharp are having this same exact problem, that's why. 在其他情况下可能不是这种情况,但是如果您使用的是CefSharp,则存在同样的确切问题,这就是原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.