WPF application template missing

My VS2010 install has a WPF Browser application project template and a WPF User Control management library template, but no WPF application template. We appreciate any suggestions.

+7
wpf
source share
3 answers

For me, ProjectTypeGuids in the .csproj file was missing (the new project worked for me, so I just compared the project files), so if you add this to the .csproj file in the PropertyGroup, then I had all the WPF types available for adding:

<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 
+6
source share

This is an old question, but I just got into the same problem and found the answer after the above did not help, so ... the solution for me was that I had to choose a higher version of the framework version (4.0) before the template the WPF application that I was looking for became visible. If you find that you do not have WPF or other project templates that you expect, you can verify that you have selected the version of the framework version from the drop-down list immediately to the right of the Recent Templates shortcut in the Add New Project dialog box (it is located in the upper left corner of the dialog box).

+5
source share

This problem is much older than Visual Studio 2010. It dates back to 2005 at least. Fortunately, I once skipped the New Class template.

According to many sources, this trick works: If you are missing the template that comes with your installation, run the devenv.exe file using the / installvstemplates switch.

To do this, you need to exit all instances of Visual Studio.

The trick is mentioned in the MSDN documentation: http://msdn.microsoft.com/en-us/library/0fyc0azh.aspx

The theme of this problem in a previous version of Visual Studio: http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/8a5ae9e3-be7b-493d-831c-1e49e8103f26/

I completely uninstalled and reinstalled my Visual Studio, but this trick would probably fix my problem.

+4
source share

All Articles