VS2010 - add a template to a new project window

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?

+3
source share
1 answer

Doing it manually is pretty bold. If the name of the folder with the .zip extension does not sound correctly, I do not see this in existing templates. Watch for the shell’s habit of turning ZIP archives into folders.

, , . , . , , .

File + Export Template. . , . . .zip.

+2

Source: https://habr.com/ru/post/1744004/


All Articles