Visualstudio-docs: Hiding child projects in multiproject template

Created on 17 Apr 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

I have created a multiproject template but in new project window I just want to see the parent template and not the child project templates as it gets confusing for users.

Is there a way to hide child project templates and disable them from showing in new project list?

Thanks.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

doc-bug support-request

Most helpful comment

Inner templates within a project group are full-fledged templates and if they are in a location being looked up, they will show up.

If the intent is not use them directly, the inner templates need to be marked as hidden.
https://docs.microsoft.com/en-us/visualstudio/extensibility/hidden-element-visual-studio-templates?view=vs-2019

Hope this helps!

All 4 comments

@batizar Hmm, I'm surprised that's happening. @prnadago If you have a multi-project template, are the subprojects supposed to appear in the new project dialog box?

Inner templates within a project group are full-fledged templates and if they are in a location being looked up, they will show up.

If the intent is not use them directly, the inner templates need to be marked as hidden.
https://docs.microsoft.com/en-us/visualstudio/extensibility/hidden-element-visual-studio-templates?view=vs-2019

Hope this helps!

Thanks Pratik. I'll update the doc with this info too.

Thanks @prnadago, it worked. :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wittelw picture wittelw  Â·  3Comments

ChrisMaddock picture ChrisMaddock  Â·  3Comments

CeciAc picture CeciAc  Â·  3Comments

wellwind picture wellwind  Â·  3Comments

H35am picture H35am  Â·  4Comments