Saturday, May 23, 2009 9:37 PM Tanzim Saqib

Running a ASP.NET MVC project on Visual Studio 2010 Beta1

You probably already know that ASP.NET MVC is not included with Visual Studio 2010 Beta1 since MVC was released when Visual Studio release was being locked down. I hope it will be available from Beta2. It also looks like if you install ASP.NET MVC after Visual Studio 2010 it does not pick up as well. So currently the only way to create and work with a MVC project is to create a project in Visual Studio 2008 and then open it with Visual Studio 2010. If you do so, it will ask you to convert this project to 2010 version which is little strange to me since there are not many things to convert from 2008 to 2010 as of yet. Anyway, so as usual you have to go through a Conversion Wizard.

ConversionError

You will notice an error while it was performing conversion. It says that the project type is not supported by this installation. You will also find the Solution Explorer is unable to load the project.

SolutionExplorer

 

Solution

1. Now its the same procedure for Visual Studio 2008 if ASP.NET MVC is not installed. Right click on the project name from the Solution Explorer and Edit.

EditProject


2. You will see the project definition XML. Seek for the line below:

<ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

3. Remove the first GUID. Save and close the file.

4. Reload the project.

ReloadProject 


5. Conversion Wizard will pop up again, now with an additional dialog box whether we would like to upgrade to .NET Framework 4.0

WebSiteTargeting

 
6. Choose whather you want. Now that the conversion is complete, you will see the report is clean.

ConversionReport

 
You are ready to go. Note that even though you can get it working with Visual Studio 2010 in this way, but you still cannot have the functionality of adding new types from Context menu such as “Add View..” and so on.

Filed under: , ,

Comments

# Running a ASP.NET MVC project on Visual Studio 2010 Beta1 - Tanzim Saqib on .NET discovery

Pingback from  Running a ASP.NET MVC project on Visual Studio 2010 Beta1 - Tanzim Saqib on .NET discovery

# Как запустить проект ASP.NET MVC на Visual Studio 2010 Beta1

Sunday, May 24, 2009 3:12 AM by progg.ru

Thank you for submitting this cool story - Trackback from progg.ru

# Running a ASP.NET MVC project on Visual Studio 2010 Beta1

Monday, May 25, 2009 6:43 AM by Web Development Community

You are voted (great) - Trackback from Web Development Community

# re: Running a ASP.NET MVC project on Visual Studio 2010 Beta1

Friday, August 07, 2009 5:30 AM by Aziz

thanks. cool story!!!

Leave a Comment

(required) 
(required) 
(optional)
(required)