I\'m using MVC 5 and .net 4.6 to create a web API that my mobile app can connect too.
Whenever I build the project I get hundreds of errors telling me that I need to add
In my case, below are the steps I followed;
dotnet restore
command via Visual Studio 2017 >> Tools >> NuGet Package Manager >> Package Manager Console.I have the same problem. I spent 2 day to resolve this problem. I try reinstall visual, clear cache visual, uninstall visual or setup windows 10 again => but not success.
You can try follow step, it success for me
Good luck
Remove bin
and obj
and rebuild.
In my case, I had a project that was still set to build against a beta version of dnx. Changing it to build against the version I was using in the other projects fixed it.
I just opened Visual Studio "As Administrator" and it worked!
Took almost 2 days to fix. Tried VS Uninstall\re-install several times but did not work.
What finally worked for me...
Ran VS Installer repair. Due to errors, I had to manually uninstall all instances MS .NET Core SDK - 2.1xxx
Ran VS Installer repair. No errors. Remove bin and obj and rebuild.
Ran dotnet restore
command on Package manager console and problem solved.