VS2010 - Add template to New Project window
Posted
by gbogumil
on Stack Overflow
See other posts from Stack Overflow
or by gbogumil
Published on 2010-05-04T14:45:43Z
Indexed on
2010/05/04
14:48 UTC
Read the original article
Hit count: 571
templates
|visual-studio-2010
I am trying to add a new project template for an often used pattern. Starting from the class library template I have done the following (it still does not show up in the new project window):
- opened the .vstemplate file
- changed name and description to 'hard coded' values (my template). The values in there pulled from the csharpui.dll resources.
- changed the TemplateID, DefaultName, and ProjectItems included.
- saved these to the ProjectemplatesCache folder and as a zip in the ProjectTemplates folder.
- restarted VS2010 and checked the new project location which should have shown my new template.
specifically, the folders I saved to were.. C:\program files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache\CSharp\Windows\1033\HostComm.zip (the zip is the folder name, not a zip file) and C:\program files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033 (this folder has a HostComm.zip file in it)
Has anyone else done this? Can it be done? If it can then what did I miss?
© Stack Overflow or respective owner