Create .NET Core Template
How to create .NET Core Template and make it installable VSIX in visual studio 2019
Last updated
Was this helpful?
How to create .NET Core Template and make it installable VSIX in visual studio 2019
Last updated
Was this helpful?
First we need to create a project in Visual studio based on the need like settings configurations, packages and more. Below we have an example of the project which is configured with APM based Micro service.
The above code has been placed on our project, now this project is the template for the future application.
Now from the visual studio under project menu, select "Export Template" menu.
A wizard will open on that select "Project Template"
Now click on "Next"
Provide the project details and click on "Finish", now we will get the project template as the Zip File.
Step 1: Create a new Project of project type "Extension", VSIX Project
In some case "Empty VSIX" is working due to Extension problem.
Double click on the Manifest file and provide the project details as we wish.
Under asset section click on the new button and select
"Microsoft.VisualStudio.ProjectTemplate
" and select the zip file which we created during "Project Template creation"
Now build the solution, our VSIX template would be ready for installation.
After installing the VSIX File, we could find the template in our visual studio 2019, as shown below
Go the Visual Studio 2019 Menu, Select "Extension" under that select "Manage Extensions".
Select "Installed" Category, under that find the product and uninstall.
It will be uninstalled during next restart of Visual Studio 2019.