Having MVC 2 with both VS 2008 and VS 2010 - visual-studio-2010

I had VS 2010, which gave me MVC 2 out of the box. Then, I installed VS 2008 Professional Edition.
I wanted to do MVC 2 with VS 2008. I had to download MVC 2 for VS 2008 SP1, which I did. Now, when I try to install MVC 2 for VS 2008 SP1, it tells me that I already have MVC 2 installed in another location and I must remove that first. I guess it is referring to the MVC 2 installation that VS 2010 gave me.
How do I let both of them co-exist?

Remove MVC which was installed with VS2010 (it's avaible in add/remove in control panel) and install MVC 2 RTM. It's newer then MVC that you get with VS 2010 and it should work with both versions of VS.

Related

Use web api 2 in visual studio 2010

How can I use web api 2 in Visual Studio 2010.
Is there any way I can use web api 2 in VS 2010?
Can somebody please help or guide?
If you want to include Framework version 4, you can follow these steps. In Visual Studio 2010 to add a project of type ASP.NET MVC Web API we can:
1 - Have .NET Framework 4 & ASP.NET MVC 4 installed.
2 - Add a new project and select MVC 4
( on this screen there is no Web API template which is where many users may expect to see it )
3 - Select the Web API Template
You can see the answer here
But in your case, you need to install framework version 4.5. Each version of Visual Studio prior to Visual Studio 2010 is tied to a specific .NET framework. Visual Studio 2010 and beyond allow for targeting of prior framework versions but cannot be used for future releases. You must use Visual Studio 2012 in order to utilize .NET 4.5.
But one user has found a scenario where we can use framework version 4.5 in VS 2010, please see the answer of David Woodward here. If you can install VS 2012, it will be much easier since you don't need to download and install anything else.

Can I work on MVC 4 using Visual Studio 15 Preview?

Can I work on old ASP.NET MVC 4 projects using Visual Studio 15 Preview? If so, would VS 15 update the project/project file?
I don't want to mess up my old projects by opening them in VS 15.
At least you cannot do so in Visual Studio 2017 RC, but Microsoft seems to indicate the RTM release will support MVC 4,
https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes
MVC 4 Projects are not supported
Issue:
Open MVC 4 project using Visual Studio 2017 RC prompts to Install
Missing Features - .NET Desktop Development, which is incorrect. Even
after you install the missing features, project does not load in
Solution Explorer and shows up as incompatible.
Workaround:
No workaround, support will be added in the future.
But you should consider seriously about upgrading to MVC 5, as Microsoft technical support team should requires that based on the support policies,
https://www.asp.net/support

Will Visual Studio 2010 SP1 (beta) break asp.net MVC 3 (RTM)?

I've got VS 2010 (no service pack) and asp.net MVC 3 installed. I would like to try out the VS2010 SP1 beta but afraid that it will break my MVC 3 projects.
Does anyone know if i can install SP1 beta right on top of MVC 3 RTM?
It looks like this is being discussed here:
Installation of Visual Studio 2010 Service Pack 1 Beta and Asp.net MVC 3

Installing VS 2010 B2 & .NET 4 B2: What are the consequences to my system and previous installations of VS & .NET 3.5 SP1?

I want to try out the new Beta 2 of Visual Studio 2010, but I'm not sure if the installation (or the included .NET Framework 4 Beta 2) is self-contained, or if it will somehow impact my system beyond adding an entry for Visual Studio 2010 to my start menu.
The machine I want to install Visual Studio 2010 is my main development machine, so it is critical that no changes are made to Visual Studio Team System 2008 & .NET 3.5 SP1, already on the system.
Can I install Visual Studio 2010 Beta 2 without breaking my development environment?
Visual Studio 2010 b2 is supposed to be safe to install side-by-side with VS 2008. There is a problem with the Silverlight 3 Toolkit, where you have to reinstall it.
ScottGu blogged about it here: http://weblogs.asp.net/scottgu/archive/2009/10/19/vs-2010-and-net-4-0-beta-2.aspx
They install fine side-by-side with just the SL3 proviso as Rune says, but bear in mind that if you start opening VS2008 solutions in VS2010 it will want to migrate them and you will have problems re-opening the migrated solutions in VS2008.
You can get around this by creating separate solutions for each VS version and using the same projects/code in both, see this SO thread:

ASP.NET MVC 2 and VS 2010 Beta 2

I have a VPS and I would like to be able to run ASP.NET MVC 2 apps that were built in Visual Studio 2010 Beta 2.
Which ASP.NET MVC 2 do I need to install (is it Preview 2?) and where can I get the installer for it since all I can find are MVC 2 RC for VS 2008?
You can install Framework 3.5 SP1 on the server, and copy System.Web.Mvc.dll to the bin directory, then it will work. You can extract the DLL from the GAC of the machine you have Visual Studio 2010 on. (Perhaps you have some other references too, that you will need to copy).

Resources