Can WebForms and MVC live in a single project?
问题 I'd rather be doing MVC as the regular WebForms development eats my soul. However, I've been given a fairly sizable WebForms project to add a bunch of features to. Is there anyway for WebForms and ASP.NET MVC to coexist in single project or even jointly handle the website? I know I am asking for a hack. 回答1: Here goes... Make sure your project is targeting .NET 3.5 Add references (and make sure they copy to local) the big 3 assemblies for MVC (System.Web.Mvc, .Abstractions, .Routing) Add a