I am trying to add a new project template for a commonly used template. Starting with the class library template, I did the following (it still does not appear in the new project window):
- opened the .vstemplate file
- name and description changed to hardcoded values (my template). The values there are extracted from csharpui.dll resources.
- changed the name TemplateID, DefaultName and ProjectItems.
- saved them in the ProjectemplatesCache folder and as zip in the ProjectTemplates folder.
- restarted VS2010 and checked the new project location, which was supposed to show my new template.
in particular, the folders that I saved were .. C: \ program files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ProjectTemplatesCache \ CSharp \ Windows \ 1033 \ HostComm.zip (zip is the name of the folder, not the zip file) as well as C: \ program files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ProjectTemplates \ CSharp \ Windows \ 1033 (there is a HostComm.zip file in this folder)
Has anyone else done this? It can be done? If possible, then what did I miss?
source
share