Enabling Web Editor Support in Class Library Projects

Comments 0

Share to social media

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:

<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

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!

Load comments

About the author

Damon Armstrong

See Profile

Damon Armstrong is a consultant with SystemwarePS in Dallas, Texas. He is also a blogger and author of Pro ASP.NET 2.0 Website Programming and SharePoint 2013 Essentials for Developers. He specializes in the Microsoft stack with a focus on web technologies like MVC, ASP.NET, JavaScript, and SharePoint. When not staying up all night coding, he can be found watching a bunch of kids, studying Biblical topics, playing golf, or recovering from staying up all night coding.