I made a simple C# project template for Visual Studio, referring to the following sites.
- https://docs.microsoft.com/ja-jp/visualstudio/ide/creating-project-and-item-templates?view=vs-2019
- https://docs.microsoft.com/ja-jp/visualstudio/ide/how-to-create-project-templates?view=vs-2019
This works well, and in the 'Create a new project Dialog' Window, I can search by project name, and when selected, it creates a project and solution based on the template.
The name of this template is 'SimpleTemplate'. I confirmed that the following files were generated by the template export process.
- C:\Users\[UserName]\Documents\Visual Studio 2019\Templates\ProjectTemplates\SimpleTemplate.zip
I deleted the zip file and repeated the process again to reconfirm this step.
To be specific I deleted the project once, and recreated from begning, and then exported exactly the same way I did it in a few menutes before.
Then I found that, for some reason, Visual Studio is not be able to load my custom project templates after that.
So I created a SimpleTempate2 or SimpleTemplate3, trying to let Visual Studio recognize the new custom template is prepared, but that did not work at all.
Any of custom project template doesn't show up at all when I try to select a tag, even if I enter a keyword in the Create a new project Dialog.
If you are interested, please give it a try. Is this only occurring in my environment, or it is happening in other environments?
https://github.com/TrailRunner-MF/Samples/tree/master/SimpleProjectTemplate
My environment is as follows.
- Processor: Intel(R) Core(TM) i5-24005 CPU @2.50GHz
- Implemented memory: 16.0GM
- System type: 64-bit operating system
- Windows editions: Windows 10 Enterprise
- Microsoft Visual Studio Professional 2019 Version 16.5.2
If you have any information on how to solve this problem, please share it with us.
Thank you.