Somehow, I have no idea how, put the project in very weird state where many dll from MVC are missing. Take a look on image, how can I restore them ? I tried with NuGet

install-package aspnetmvc

but it doesn't help

image

有帮助吗?

解决方案

Update-Package -Reinstall this is the answer for my problem.

其他提示

Those are packages.

1.

Open up Package Manager settings by Going to Tools -> Options... (VS2012) then Package Manager -> General and tick both checkboxes.

Package Manager Settings

2.

Enable NuGet Package Restore

Enable NuGet Package Restore

3.

Build your solution.

I'm gonna assume that you changed the target framework before this happened. Remove the references and add them back using NuGet. That will solve this problem

Upgrade You target Framework version Enable NuGet Package Restore.

Go to Package Manager Console and type this

Update-Package

Hit Enter.

After this Rebuild you Project/Solution and all should be good.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top