How to prevent a template appearing in Visual Studio? #4772
-
We have a template that we use as part of a large open-source project. The intention for this template is only to use it from the command line. When installed (via a command line) on a machine, Visual Studio lists it as an option in the "New Project" dialog. Is there a way to prevent this template from appearing there? We want to do this because:
It's going to be much easier (and desirable) for us to prevent the template from appearing in the wizard/dialog than deal with the support requests and consequences of them not working or being created somewhere with the wrong relative paths. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can create an ide.host.json in your .template.config directory to keep the template from showing in the new project dialog.
|
Beta Was this translation helpful? Give feedback.
You can create an ide.host.json in your .template.config directory to keep the template from showing in the new project dialog.