[英]Cannot access third-party DLL from my.exe
The scenario: I use a class from C:\\3rd\\dll\\thirdparty.dll
in my project by Referencing the location. 方案:通过引用位置,在项目中使用C:\\3rd\\dll\\thirdparty.dll
中的类。 Building the project I get no errors. 建立项目我没有任何错误。 The Build result is c:\\myprojects\\test\\my.exe 生成结果为c:\\ myprojects \\ test \\ my.exe
Now When I run the my.exe I get error: 现在,当我运行my.exe时出现错误:
Can not find the thirdparty.dll file. 找不到thirdparty.dll文件。
I have updated the PC PATH to include C:\\3rd\\dll
folder 我已经更新PC路径以包含C:\\3rd\\dll
文件夹
Dynamic-Link Library Search Order only works for native code. 动态链接库搜索顺序仅适用于本机代码。 You are using a managed assembly, here is how lookup works for .NET: How the Runtime Locates Assemblies 您正在使用托管程序集,这是.NET查找的工作方式: 运行时如何查找程序集
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.