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.
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.
Fixing this Error: MetaData File .dll could not be found.
1.Clean All Projects.
2.Unload All Projects.
3.Reload All Projects.
I hope this will address your problem and solve this issue.
Error: This project references NuGet package(s) that are missing on this computer.
Enable NuGet Package Restore to download them.
For more information, see http://go.microsoft.com/fwlink/?LinkID=322105
The missing file is ../../packages/Xamarin.Forms.18.104.22.16896/build/portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Xamarin.Forms.targets. (FormsGallery)
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.
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.
Solve this issue like as given below.
- Clean Solution
- Close Visual Studio
- Deleting /bin from the project directory
- Restart Visual Studio
- Rebuild Solution
Running this command in bash to delete all bins worked
$ find . -iname "bin" -o -iname "obj" | xargs rm -rf