How to get NOP plugin project template to display in Visual Studio 2019?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
I downloaded the NOP 4.2 plugin project template and installed it in the
C:\Users{Username}\Documents{VisualStudio}\Templates\ProjectTemplates\Visual C#
folder, however, when adding a new project, I don't see the new template in the list.
Does anyone know how to get VS2019 to show 3rd party templates?
4 years ago
I got the answer from a Microsoft forum.
To get this to work, edit your .vstemplate file and add the following inside the TemplateData tags:

<LanguageTag>CSharp</LanguageTag>
<PlatformTag>Windows</PlatformTag>
<ProjectTypeTag>desktop</ProjectTypeTag>


Now, when you restart VS2019, select C#, Windows, Desktop and scroll to the bottom, you will see the newly added project template there.
4 years ago
beefydog wrote:
I downloaded the NOP 4.2 plugin project template and installed it in the
C:\Users{Username}\Documents{VisualStudio}\Templates\ProjectTemplates\Visual C#
folder, however, when adding a new project, I don't see the new template in the list.
Does anyone know how to get VS2019 to show 3rd party templates?


We tested the template a lot of time, in the different environment and version of Visual Studio, any problems were found. See the screenshots:





But we added the suggested Language and ProjectType tags to the project template file to help to filter templates in the Visual Studio (see details on this commit). Thank you beefydog for help.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.