CS0234: Mvc does not exist in the System.Web namespace

前端 未结 8 1548
醉梦人生
醉梦人生 2020-12-01 08:57

I converted a ASP.net 4 webform project to Asp.net MVC4 according to Chapter 13 of the Professional ASP.NET 3.5 MVC, by Scott Hanselmen, Phil Haack, and Rob Conery, Publishe

相关标签:
8条回答
  • 2020-12-01 09:46

    None of previous answers worked for me.

    I noticed that my project was referencing another project using the System.Web.Mvc reference from the .NET Framework.

    I just deleted that assembly and added the "Microsoft.AspNet.Mvc" NuGet package and that fixed my problem.

    0 讨论(0)
  • 2020-12-01 09:53

    add Microsoft.AspNet.Mvc nuget package.

    0 讨论(0)
提交回复
热议问题