0

Is it possible to create ASP.NET MVC3 project with using Visual Studio 2013? By default, I can create only ASP.NET MVC4 and ASP.NET MVC5.

1
  • try your luck on searching for it first. However you can check this link for reference Commented Dec 14, 2013 at 11:19

2 Answers 2

3

Yes it is possible,

  1. Create the project with the new mvc
  2. Open references from the solution explorer and then delete system.web.mvc
  3. From tools select Nuget package manager console
  4. Download system.web.mvc 3 using this:
    Install-Package Microsoft.AspNet.Mvc -Version 3.0.20105.1
Sign up to request clarification or add additional context in comments.

3 Comments

Simply taking a new Azure Cloud Service project in VS2013 with the web role as an MVC application and running that NuGet command results in a badly broken project (won't compile because of AllowAnonymousAttribute). Even after fixing that, you then have runtime errors with the System.Web.WebPages.Razor assembly. It seems this is a rabbit hole that needs quite a bit of more work to get working.
I will add, though, that if somebody has a legacy MVC 3 app from older versions of VS that they bring into VS2013, this approach seems to have some tremendous value. Upvoting this for that reason even though that isn't quite the target of the original question.
This still worked for old projects loaded in VS 2019
2

You cannot create a ASP.NET MVC3 project with using Visual Studio 2013. You must upgrade See this SO question for more detail.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.