find and solve ||
Please wait.....

VS 2019 Metadata file '.dll could not be found

Severity Code Project Description File Line Suppression State Error CS0006 Entities Metadata file 'C:\Users\User-Pc\.nuget\packages\microsoft.entityframeworkcore.analyzers\2.2.0\analyzers\dotnet\cs\Microsoft.EntityFrameworkCore.Analyzers.dll' could not be found E:\xxxProject\xxx\xxx\CSC 1 Active.


Option 1.

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 succeede.

Option 2.

Fixing this Error: MetaData File .dll could not be found.

1.Clean All Projects.

2.Unload All Projects.

3.Reload All Projects.

4.ReBuild Solution

I hope this will address your problem and solve this issue.

Option 3.

Error: This project references NuGet package(s) that are missing on this computer.
Enable NuGet Package Restore to download them.
For more information, see
The missing file is ../../packages/Xamarin.Forms. (FormsGallery)

Option 4.

In my case, there was an error, but it was not properly parsed out by VS and shown in the "Error List" window. To find it, you much view the ol "Output" from build window and parse through the messages starting from top down and resolve the actual error. M$, please fix! This is a huge waste of time of the worlds collective developers.

Option 5.

The downside to dotnet restore is that it does not work with VSTS's authenticated feeds. We would need NuGet 4.0 to work with both authenticated feeds and VS2017 csproj.

Option 6.

Solve this issue like as given below.

  1. Clean Solution
  2. Close Visual Studio
  3. Deleting /bin from the project directory
  4. Restart Visual Studio
  5. Rebuild Solution

Option 7.

Running this command in bash to delete all bins worked

$ find . -iname "bin" -o -iname "obj" | xargs rm -rf

Selena  Kandakar

Selena Kandakar

I like working on projects with a team that cares about creating beautiful and usable interfaces.


Report Response