.net – Why is System.Web.Mvc not listed in Add References

assembly-referencesnetvisual studio

Using C#, Visual Studio 2010.

There is a namespace called System.Web.Mvc documented on MSDN. The documentation for all the types in that namespace says that they are in System.Web.Mvc.dll.

However, when I go to Add Reference, “.NET” tab, this assembly is missing from the list. Why?

Best Answer

Best way is to use NuGet package manager.

Just update the below MVC package and it should work.

enter image description here