Tuesday, March 15, 2011

Visual Studio Project GUIDS

Following on from this question...

"how do you tell the visual studio project type from an existing visual studio project"

How do i add project guids into my csproj file to enable me to add other types of form/controls.

For instance I create a class project solution and want to be able to add web forms and web user controls to the project.

I attended a talk where the presenter showed this was possible but he didn't supply any further information.

From stackoverflow
  • Close the project, open the project file in a text or XML editor, and add the guids manually.

    (Keep an original copy, it make take a few attempts to get right.)

    Rob : I'm trying that by adding this line... {ABF1B333-B149-4DBF-B1D7-B66438F14AD9};{349C5851-65DF-11DA-9384-00065B846F21};{E24C65DC-7377-472B-9ABA-BC803B73C61A} which should give me the class, web app and web site. However i still don't have any additional forms.
  • It's quite easy. Just edit the web project. Add the necessary guids as shown in my post, How to Hack a Class Library Project into a Web Application Project.

    Rob : Excellent stuff, I see my mistake now, thanks.

0 comments:

Post a Comment