08 April 2011

Enabling Web Editor Support in Class Library Projects

One of the things that has bothered me for a while is that it’s tough to edit web files (.aspx / .ascx files) in non-web projects.  I think you can edit them if they are in the root directory (I may be recalling wrong, it’s been a while) but the minute you put them in a directory the editor won’t open up for them.  Jeff Burt informed me this morning that if this bothers you, you can fix it!  Just open up your project file, locate the line containing the <ProjectGuid> element and add the following line under it:


This enables web editing functionality in non-web projects.  If your project already has a ProjectTypeGuids element then you may just have to add those entries to the existing list.  Thanks Jeff!

For more articles like this, sign up to the fortnightly Simple-Talk newsletter.


  • Rate
    [Total: 0    Average: 0/5]

Damon Armstrong is a Senior Engineering Team Lead with GimmalSoft in Dallas, Texas, and author of Pro ASP.NET 2.0 Website Programming. He specializes in Microsoft technologies with a focus on SharePoint and ASP.NET. When not staying up all night coding, he can be found playing disc golf, softball, working on something for Carrollton Young Life, or recovering from staying up all night coding.

View all articles by Damon Armstrong