How to create a Visual Studio 2015 project template for NET Core?

I want to create an initial project for VS 2015 with a basic setup for Angular2 in ASP.NET Core, so I would like to make it as a template.

In the "New Project" window in the "Extensibility" section, I have a C # project template, but it targets the full .NET Framework.

I also tried to export a sample .NET Core sample as a template, but it also does not work with .NET Core. When I select it as a template for a new project, it is like an empty VS project with the error "Link to an object not installed on an instance of the object" in the "Error list" window.

Is there any other way to create a template for .NET Core?

+4
source share
2 answers

I would just like to move the comment that fixed my problem in the answers. Thanks to @Paul Hiles in the comments above for the following link: Project Template for Visual Studio 2015

So far, I have not been able to get it to work in a template with several solutions. It works great for a single .NET Core project template.

+1
source

You can use the dotnet cli tool (command line interface) to create these basic .NET web projects. It is a cross-platform platform, so you can use it also on Mac or Linux.

Create the dir / directory for the project. In the console, enter the following.

folder-name>dotnet new -t web

Then open the project in VS Code by typing the following:

folder-name>code .

That is, with a period at the end and press enter.

-1
source

Source: https://habr.com/ru/post/1653042/


All Articles