Skip to content
This repository was archived by the owner on Nov 21, 2022. It is now read-only.

AddMvcToWebforms

Lodewijk Sioen edited this page May 28, 2015 · 3 revisions

How to add MVC to a Webforms project

Using Nuget:

PM> Install-Package Microsoft.AspNet.Mvc

Manually:

  • Get the Mvc binaries (for example using Nuget Package Explorer). You'll need the following binaries:
    • System.Web.Mvc.dll
    • Microsoft.AspNet.WebPages.dll
    • Microsoft.AspNet.Razor.dll
    • Microsoft.Web.Infrastructure.dll
  • Add the following AppSetting to your web.config if you want to use Webpages:
 <add key="webpages:Enabled" value="true" />

TODO: Add Default folders, Add web.config to Views folder

Clone this wiki locally