Whenever you have a NuGet error such as these I usually take these steps:
1) Go to the packages folder in the Windows Explorer and delete it.
2) Open Visual Studio and Go to Tools > Library Package Manager > Package Manager Settings and under the Package Manager item on the left hand side there is a Clear Package Cache button. Click this button and make sure that the check box for "Allow NuGet to download missing packages during build" is checked.
3) Clean the solution
4) Then right click the solution in the Solution Explorer and enable NuGet Package Restore
5) Build the solution
2) Open Visual Studio and Go to Tools > Library Package Manager > Package Manager Settings and under the Package Manager item on the left hand side there is a Clear Package Cache button. Click this button and make sure that the check box for "Allow NuGet to download missing packages during build" is checked.
3) Clean the solution
4) Then right click the solution in the Solution Explorer and enable NuGet Package Restore
5) Build the solution
Taking all of these steps almost always restores all the packages and dll's I need for my MVC program.









No comments:
Post a Comment