Friday, 14 March 2008

Restoring template settings after upgrading to ASP.NET Preview 2

I recently upgraded the systems I've been working on to use the ASP.NET MVC Preview 2 from the old December 2007 CTP version. I followed the very thorough explanation given here
http://www.asp.net/downloads/3.5-extensions/readme/Preview2.aspx

Fortunatly it didn't take too long and I soon had my projects up and running again. All was good until I tried to actually work with one of the projects, all the MVC templates were missing when I tried to add something new. I don't pretend to understand the detail of this but I think Preview 2 works with a new project type and VS2008 looks for this project type when filtering the templates. The old Preview 1 MVC projects will have a different project type so the MVC templetes will not be shown.

My solution, I created a new empty MVC project and opened up it's project file in notepad and copied the following line.

<ProjectTypeGuids>{603c0e0b-db56-11dc-be95-000d561079b0};{349c5851-65df-11da-9384-00065b846f21};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>

I then replaced the corresponding line in my old project file with the new line and all my templates returned.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home