简体   繁体   English

从探测文件夹运行C ++可再发行文件

[英]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位于同一文件夹中,则该应用程序将成功运行:

  • msvcp110.dll msvcp110.dll
  • msvcp120.dll msvcp120.dll
  • msvcp140.dll msvcp140.dll
  • msvcr110.dll msvcr110.dll
  • msvcr120.dll msvcr120.dll
  • vcruntime140.dll vcruntime140.dll

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.

相关问题 服务器上不允许C ++可再发行 - C++ Redistributable Not Allowed On Server Visual Studio 2015 的 C# 和 C++ Redistributable 缺少依赖项 - Missing dependencies with C# and C++ Redistributable for Visual Studio 2015 Microsoft Visual C ++ 2010 SP1可在Azure上重新分发吗? - Microsoft Visual C++ 2010 SP1 Redistributable on Azure? 如何检查设备上是否安装了 Microsoft Visual C++ 2015 Redistributable - How to Check if Microsoft Visual C++ 2015 Redistributable Installed on a Device Windows Docker: Issues installing Visual C++ Redistributable in Windows Docker - Windows Docker: Issues installing Visual C++ Redistributable in Windows Docker 未正确检测到Visual C ++ Redistributable 2012检查 - Visual C++ Redistributable 2012 check is not being detected correctly 验证是否安装了Visual C ++ 2008 SP1可再发行组件包? - Verify if Visual C++ 2008 SP1 Redistributable Package is Installed? 构建一个无需 C++ Redistributable Package 即可运行的 .exe - Build an .exe that runs without C++ Redistributable Package 如何使用 C# 从 windows Temp 文件夹中删除所有文件? (当进程运行时) - How do you delete all files from the windows Temp folder using C#? (When the processes are running) 找不到以编程方式C#的Microsoft Visual C ++ 2015可再发行组件 - Cannot find Microsoft Visual C++ 2015 Redistributable Programmatically C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM