VS 2017 元数据文件 '.dll 找不到

VS 2017 Metadata file #39;.dll could not be found(VS 2017 元数据文件 .dll 找不到)
本文介绍了VS 2017 元数据文件 '.dll 找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道另一个问题与完全相同的问题,但我通过了所有这些答案,但没有一个对我有帮助.:( (​​这是问题.)

I know there is another question with exact the same problem, but I went trough all those answers, and none helped me. :( (This was the question.)

我刚刚创建了一个新的 ASP.NET MVC 项目并在解决方案中加入了一些.dll".现在,当我尝试构建项目时,我在 5 个库中的 3 个上收到如下所示的错误消息.

I just created a new ASP.NET MVC project and joined a few '.dll's in the solution. Now when I try to build the project I get the error message shown below on 3 of the 5 libraries.

Error   CS0006  Metadata file 'C:Users...sourceDatabaseinDebugDataAccessLayer.dll' could not be found   Logic   C:Users...sourceLogicCSC   1   Active

Error   CS0006  Metadata file 'C:Users...sourceLogicinDebugLogic.dll' could not be found    PTS2-MVC    C:Users...sourcePTS2-MVCCSC    1   Active

Error   CS0006  Metadata file 'C:Users...sourcePTS2-MVCinPTS2-MVC.dll' could not be found    PTS2-MVC.Tests  C:Users...sourcePTS2-MVC.TestsCSC  1   Active

当我转到该 .dll 的 bindebug 文件夹时,我看到它是空的,而我没有收到错误消息的另一个 .dll 不是空的.但我不知道如何解决这个问题,也不知道我做了什么来实现这一点.

When I go to the bindebug folder of that .dll, I see that it is empty, and the other .dll where I do not get an error message, is not empty. But I am clueless how to fix this or what I did to make this happen.

最常见的答案是转到解决方案属性,然后转到配置取消选中-> apply -> checkapply 再次,但是没有用

The most common answer is to go to the properties of the solution and go to configuration and uncheck -> apply -> check and apply again, but that didn't work

推荐答案

问题是我的项目中有一些其他正常的错误消息,显然在我修复这些错误之后,当我再次清理和构建我的项目时,所有.dll 成功.

The problem was that I had some other normal error messages in my project, and apparently after I fixed those and when I cleaned and built my project AGAIN, then all .dlls succeeded.

确保您的项目中没有任何其他错误消息,如果有,请先修复这些错误消息!

Make sure you don't have any other error messages in your project and if you do, fix those first!

这篇关于VS 2017 元数据文件 '.dll 找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)