Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use asp.net mvc 6 in Visual studio 2013?

Is it possible to run asp.net mvc6 in Visual studio 2013? If so how can I do it?

If not would it be possible to do it?

like image 907
hackp0int Avatar asked Jun 17 '14 08:06

hackp0int


People also ask

Can I use .NET Core in Visual Studio 2013?

Yes, it's possible to build against the . NET Core 5 contracts in Visual Studio 2013 by creating a Portable Class Library that targets . NET Framework 4.5 and Windows 8.

How do I create a new MVC project in Visual Studio 2013?

Click New Project in the Start page or in the File menu. In the New Project dialog, click Web in the left pane and ASP.NET Web Application in the middle pane. You can choose Cloud in the left pane to create an Azure Cloud Service, Azure Mobile Service, or Azure WebJob.


2 Answers

Once MVC6 is released you should be able to run it, but it will most likely not be possible to get the project templates that will be available in VS 2015. I have a good tutorial on getting a MVC5 project similar to what was available as a template in VS 2013 while starting from an MVC4 template in VS 2012. The time it took me to replicate this process once I had done it several times was still close to 30 mins each time I wanted to do it. It was also easier because there was not a fundamental change in the framework from VS2012 to VS2013.

Stack O Question for doing this with MVC5 in VS 2012

So will it be possible,.. maybe. Will it be productive and smooth? It can't be. It will probably be at best a hack, and I can only imageine the restrictions you will have because a lot of changes in the way things build in 2015 using the new compilation wouldn't be possible, there are breaking changes in the difference from ASP.NET 4.5 & ASP.NET 5 as well as MVC 5.2 and MVC 6.

In No Particular Order..

  1. ASP.NET on OSX and Linux
  2. View Components
  3. AngularJS Templates
  4. Project Compilation

These are huge changes. I have slightly changed my answer because I believe the question has been updated. My overall opinion is that it will not be as easy to build an MVC6 project in 2013 as it was to build a MVC5 project in Visual Studio 2012. There are huge changes in the framework and even more in the actual IDE that would just make it counter productive to not use some version of 2015.

like image 88
Eric Bishard Avatar answered Nov 08 '22 08:11

Eric Bishard


The Asp.Net MVC 6 has introduced following new features

No More Web Forms
No More Visual Basic
Tag Helpers
GruntJS, NPM, and Bower Support
Edit while running the solution like Classic ASP editing
ASP.NET Dependency Injection Framework

So if you see these features which can not be compatible with earlier version of VS like 2013 so you can not run the MVC 6 in VS 2013..

For details of new features check below website

new features in ASP.NET 5 and MVC 6 can't be compatible with VS 2013..may be some updates from MS would help in future..

like image 38
Maddy Avatar answered Nov 08 '22 07:11

Maddy