Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Application template is missing

Tags:

wpf

My VS2010 install has WPF Browser application project template, and WPF User Control lib template, but no WPF Application template. Any suggestions would be appreciated.

like image 944
kamran123 Avatar asked Jun 28 '10 04:06

kamran123


3 Answers

Just had this in VS2017 Community Edition. This discreet message to add missing templates helped me:

Add templates

like image 122
CodingYourLife Avatar answered Sep 18 '22 08:09

CodingYourLife


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

<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
like image 7
Michael Avatar answered Oct 16 '22 19:10

Michael


This is kind of an old question, but I just hit the same issue and found the answer after the above didn't help, so....the solution for me was that I had to select a higher framework version (4.0) before the WPF Application template I was looking for became visible. If you find that you don't have the WPF or other project templates you expect available, you may want to check that you've selected the approriate framework version from the drop-down list immediately to the right of the "Recent Templates" label in the Add New Project dialog (it's near the top-left of the dialog in question).

like image 5
Rachel Avatar answered Oct 16 '22 18:10

Rachel