How do I write an MVC 1 app with MVC 2? - asp.net-mvc

I went to http://www.asp.net/mvc and the web installer offered me the option to install MVC 2, but not MVC 1.
I thought MVC 2 was still in beta? Either way, I need to write an MVC 1 app. In visual studio, my only choice is either ASP.NET Web Application or ASP.NET MVC 2 Web Application.
Can anyone advise?

You actually don't have to remove MVC 2. You can have v1 and v2 installed side-by-side with no issues.

Remove MVC2 and download and install MVC 1 from here

Related

Is ASP.NET MVC 2/ 3 redistributable?

ASP.NET MVC 2 and 3 are prerequisite for our installer. We have planned to install this software’s using WIX Bootstrapper. Anyone let me know ASP.NET MVC 2 or 3 is redistributable. If so where I can download the redistributable package? I have searched through web and unable to found anything. Thanks in advance.
If you mean that you want to include the MVC 3 runtime, this link should do

Not able find Compare attribute in ASP.NET MVC 3 RTM

I am not able to find Compare attribute in ASP.NET MVC 3 RTM.
Is this because of me using the ASP.NET MVC 3 RTM? if yes then which version i have to use?
It's very possible, yes. It didn't exist in MVC 2, but MVC 3 has it (tested it). Try using the latest release of MVC 3 (thus, not the RTM).
If at that point you're still not able to find it, something else is wrong.

Problem in opening ASP.NET mvc 1 projects in ASP.NET mvc 2

I cannot open a project built on ASP.NET MVC 1 in an MVC 2 environment. I get an exception saying 'The Project File xxxx.csproj cannot be opened. This project type is not supported by this installation'.
I can create a new MVC application though. I suspect this is due to the backward non compatibility of MVC 2 and 1, but am not sure. Please help.
You can open MVC1 projects but you need to delete a key from the project file:
http://weblogs.asp.net/leftslipper/archive/2009/01/20/opening-an-asp-net-mvc-project-without-having-asp-net-mvc-installed-the-project-type-is-not-supported-by-this-installation.aspx
You can also upgrade them with this tool:
http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx
hope this helps
Yes, MVC 2 is not seamlessly backward compatible.
You can have MVC 1 and MVC 2 installed side by side.
You can upgrade your MVC 1 project to MVC 2, see upgrading information.

can you have both asp.net mvc 1 and 2 installed side by side?

i need to have one project on asp.net mvc 1 but i want to upgrade for another project. is this possible?
Yes you can. See Scott Guthrie's blog for more information.
ASP.NET MVC 2 can be installed
side-by-side with ASP.NET MVC 1
(meaning you can have some apps built
with V1 and others built with V2 on
the same machine). We have
instructions on how to update your
existing ASP.NET MVC 1 apps to use
ASP.NET MVC 2 using VS 2008 here.
Note that VS 2010 has an automated
upgrade wizard that can automatically
migrate your existing ASP.NET MVC 1
applications to ASP.NET MVC 2 for you.

Should I start a new ASP.Net MVC project with MVC 2 RC?

I have a new ASP.Net MVC application that I am about to start and I am wondering if its worth my while to use the 2 RC version over MVC 1.
Will my MVC 1 applications upgrade easily to MVC 2 if I do continue with 1?
I'd suggest you start it by using MVC 2 RC. If you decide to use MVC 1 and you haven't modified or extended anything too deeply in MVC 1 upgrading won't give you much pain.
But I think MVC 2 RC is reliable to start developing a new app. My 2 cents...
It all depends on your requirement MVC 2 is still beta but.
MVC 1 app can be upgrade to MVC 2 with lots of trouble, you can easily convert Uprade from this link http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx

Resources