Why is System.Web.Mvc not listed in Add References?

后端 未结 14 2633
日久生厌
日久生厌 2020-12-12 23:25

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

14条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 23:53

    I had the same issue and wasn't able to locate the System.Web.MVC reference assembly.

    Finally found out and it was located inside the following location.

    Note if your VS was installed in C: (Sometimes the MVC.dll is not in the default location which everybody talk about, i mean the "Reference Assemblies" folder located in the C: drive.)

    if its not there, it should definitely be in here:

    \Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies\System.Web.Mvc.dll

    So add the dll through navigating or the browse tab in the add reference menu.

提交回复
热议问题