简体   繁体   English

.NET Framework 库引用的 FileNotFoundException

[英]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:此命令可用:

  • in the context menu of the solution entry in the Solution ExplorerSolution Explorer中解决方案条目的上下文菜单中
  • in the Build menu of visual studio在visual studio的Build菜单中

暂无
暂无

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

相关问题 使用对dll的引用实例化.NET类会导致FileNotFoundException - Instantiating a .NET class with a reference to a dll causes FileNotFoundException 是否可以使用 .NET 5 Blazor 应用程序中的实体框架 6 引用 .NET 框架库? - Is it possible to reference a .NET Framework Library using Entity Framework 6 from a .NET 5 Blazor App? 完整的 .NET 参考 .NET 标准 class 库:FileNotFoundException - Full .NET references .NET Standard class library: FileNotFoundException 无法加载文件或程序集当Net Framework引用Net标准库时 - Could not load file or assembly When Net Framework reference a Net Standard Library 我的.Net应用程序可以引用两个不同版本的.net框架库吗? - Can my .Net app reference two different versions of a .net framework library? 从 .Net 核心 API 引用类库(.Net 框架)方法引发错误 - Reference to a class library (.Net framework) method from .Net core API is throwing an error 如何从Visual Studio 2017中的.NET Framework 4.5控制台应用程序引用.NET标准库? - How Do You Reference a .NET Standard Library from a .NET Framework 4.5 Console Application in Visual Studio 2017? 将 .Net 核心库转换为 .Net 框架库 - Covert .Net Core Library to .Net Framework Library 如何从.NetStandard类库引用net40框架程序集? - How do I reference net40 framework assembly from .NetStandard class library? 项目参考-名称空间中不存在类型或名称空间名称'Library'; 目标框架匹配(Asp.net) - Project reference - Type or namespace name 'Library' does not exist in the namespace; target framework matches (Asp.net)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM