views:

290

answers:

2

What is the significance of the ProjectTypeGuids tag in a visual studio project?? When I created a WPF application, i am seeing two guids in here.

{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}

Does these represent WPF and Windows type of applications?

If I create my own project type (.myproj) that has .xaml and .cs files, what should I fill in this ProjectTypeGuids tags? Should I also need to fill the ProjectType tag?

It would also be better if someone differentiate the ProjectType and ProjectTypeGuids tags.

P.S. I am using Visual Studio 2010 RC currently

Thanks

+2  A: 
  • {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} is the GUID for C# project
  • {60dc8134-eba5-43b8-bcc9-bb4bc16c2548} is for project in WPF flavor package

So your ProjectTypeGuids is for a WPF C# project.

You could see the meaning of the different GUID in the register :

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Projects for ProjectTypeGuids
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Packages for packages reference by some project

Some ProjectTypeGuids

Windows (C#)            {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
Windows (VB.NET)         {F184B08F-C81C-45F6-A57F-5ABD9991F28F}
Windows (Visual C++)     {8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}
Web Application          {349C5851-65DF-11DA-9384-00065B846F21}
Web Site                 {E24C65DC-7377-472B-9ABA-BC803B73C61A}
WCF                    {3D9AD99F-2412-4246-B90B-4EAA41C64699}
WPF                       {60DC8134-EBA5-43B8-BCC9-BB4BC16C2548}
XNA (Windows)          {6D335F3A-9D43-41b4-9D22-F6F17C4BE596}
XNA (XBox)             {2DF5C3F4-5A5F-47a9-8E94-23B4456F55E2}
XNA (Zune)             {D399B71A-8929-442a-A9AC-8BEC78BB2433}
Silverlight              {A1591282-1198-4647-A2B1-27E5FF5F6F3B}
madgnome
Okay, now if I wanna create my own project (.myproj) with .xaml files in it, should I flavor the project file with that GUID ??
sudarsanyes
Do you really need a new project type if it is a project with .xaml and .cs files? If you do, I think you'll have to use a different Guid.
madgnome
yeah, i need a custom extension for my projects and I am trying to use MPF for VS2010
sudarsanyes
To use custom projects with wpf/other flavors, we need to use FlavoredProjectBase
sudarsanyes
+1  A: 

A thread at msdn has already been started and a lot has been discussed out there. If anybody is interested to know about this, check What is the significance of ProjectTypeGuids tag in the visual studio project file

sudarsanyes