Welcome to MSDN Blogs Sign in | Join | Help

Visual Web Developer Team Blog

Your official information source from the Visual Web Developer team.

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tips & Tricks: Upgrading Projects from ASP.NET MVC Preview 1 to Preview 2 (MIX 2008)

 

If you previously had ASP.NET MVC Preview 1 (CTP 1) and had already created a few projects on it then you might have to take this additional step to convert your project to ASP.NET MVC Preview 2 (MIX 2008) [After installing MVC Preview 2 (Resources here)].

In ASP.NET MVC Preview 2 we introduced a special MVC Project flavor GUID for MVC Projects.  Some of the special MVC project behaviors described in my previous post "Tooling Features Overview"  may not function as expected e.g. new 'MVC' node under the 'Web' node for 'Add new Items Dialog Box' may not show...

AddnewItem

 

To make the project features to function as expected in Preview 2, open the MVC project file (.csproj/.vbproj) of the project you created using MVC Preview 1.  Look for 'ProjectTypeGuids'... You will find the below piece of code...

       <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

Replace the above with:

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

When you reload/reopen your project your MVC Preview 2 functionality will be available in the projects you created MVC Preview 1.  Do note this in addition to other steps mentioned in the Readme Document for ASP.NET MVC Preview 2 which goes into greater details of upgrade scenario...

Vishal R. Joshi | Program Manager | Visual Studio Web Developer

Posted: Wednesday, March 12, 2008 7:28 AM by WebDevTools

Comments

Henk Feijt said:

Hi Vishal,

In the project file there is no <ProjectTypeGuids> tag. I have added the tag to <WebProjectProperties>, but that doesn't work.

There is also an attribute GUID in the FlavourProperties tag. I have changed this attribute with the contents of <ProjectTypeGuids>, but that doesn't work either

# March 12, 2008 7:01 AM

WebDevTools said:

Hi Henk,

   Could you send me your project file at Vishal.Joshi@Microsoft.com, I will try to take a look...

-Vishal

# March 12, 2008 12:36 PM

Kazi Manzur Rashid's Blog said:

[Note: This post was meant to be published the day after MIX08 version was out] I have upgraded Kigg

# March 26, 2008 11:40 AM

Web Development Community said:

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

# November 10, 2008 8:50 AM

VS2010学习 said:

[Note: This post was meant to be published the day after MIX08 version was out] I have upgraded Kigg

# June 9, 2009 1:33 PM
New Comments to this post are disabled
Page view tracker