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: 553

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):

  1. opened the .vstemplate file
  2. changed name and description to 'hard coded' values (my template). The values in there pulled from the csharpui.dll resources.
  3. changed the TemplateID, DefaultName, and ProjectItems included.
  4. saved these to the ProjectemplatesCache folder and as a zip in the ProjectTemplates folder.
  5. 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

Related posts about templates

Related posts about visual-studio-2010