我知道另一个问题与完全相同的问题,但我通过了所有这些答案,但没有一个对我有帮助.:( (这是问题.)
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 -> check 和 apply 再次,但是没有用
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 找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!