[英]FileNotFoundException for a .NET Framework library reference
Getting a FileNotFoundException
for a reference to a .NET Framework 4.6.2 library out of a .NET Framework 4.6.2 library that was loaded by a .NET 5 project.从 .NET 5 项目加载的 .NET Framework 4.6.2 库中获取对 .NET Framework 4.6.2 库的引用的
FileNotFoundException
。
Tried all known solutions:尝试了所有已知的解决方案:
Interestingly, the Fusion Log does not list any access attempt to the problematic dll file.有趣的是,Fusion Log 没有列出对有问题的 dll 文件的任何访问尝试。
Compiled the project via Rebuild
, nothing helped.通过
Rebuild
编译项目,没有任何帮助。
After having created a completely new library and placed only the isolated method there that needs to be accessed and the error reoccurred also, it was clear, that this isn't a setup problem.在创建了一个全新的库并仅将需要访问的隔离方法放在那里之后,错误也再次发生,很明显,这不是设置问题。
Solved this problem with the Clean Solution
command!使用
Clean Solution
命令解决了这个问题!
This command is available:此命令可用:
Solution Explorer
Solution Explorer
中解决方案条目的上下文菜单中Build
menu of visual studioBuild
菜单中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.