Create new ProjectTemplate and not found into project template list

最后都变了- 提交于 2021-01-29 12:08:19

问题


Templates created do not appear in the template list for new projects

I created a simple c # project and exported it as a template. * the zip is pushed into Visual Studio 2019 \ Templates \ ProjectTemplates * and in Visual Studio 2019 \ My Exported Templates

But I can not find in the visual studio window when creating a new project

I can not use a created template, which does not contain any changes to the .vstemplate


回答1:


The following command allowed me to refresh the templates:

devenv /installvstemplates

it is no longer documented on vs2019, it was used in the previous version. But it still seems to work and essential to update the list of templates

if you want to modify your template and see the effects directly

  1. your template which is here

    Documents\Visual Studio 2019\Templates\ProjectTemplates\Philippe_Project

  2. Delete Philippe_Project.zip into parent dir
  3. You can modify files into dir


来源:https://stackoverflow.com/questions/58647385/create-new-projecttemplate-and-not-found-into-project-template-list

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!