The previous post, NuGet package for. NET core programs, mentions that you are ready to create a NuGet bundle that automatically generates a simple example project for ASP. Originally intended to be implemented with NuGet, but later discovered that NuGet did not automatically introduce the content directory when using the. NET core NuGet Package, and official documentation also indicated that it was being developed, so this implementation was abandoned.
Can not be implemented with NuGet package, so the implementation of the project template, the implementation process is more simple and fast, the specific process is not detailed, simply say
1 first create your own common Starterkit project, which starts with empty Web project, manually joins the required files and dependencies, and contains the basic MVC framework content.
For code content, see
Https://github.com/shenba2014/AspDotNetCoreMvcExamples/tree/master/StarterKit
There are two items in the Starterkit and Starterkitvsix,starterkit are the actual template content, Starterkitvsix is used to generate the VSIX file.
2 Create a project Template
Reference https://msdn.microsoft.com/en-us/library/xkh1wxd8.aspx
3 Generating a VSIX file
https://msdn.microsoft.com/en-us/library/dd885241.aspx?f=255&MSPPError=-2147217396
In fact, to this step can be directly installed in the generated VSIX file to Vistual Studio, see (Tools->extensions and updates–> installed–> Templates)
4 Publishing templates to visual Studio Marketplace
This step can be omitted, but always feel incomplete, always to share out or later to use or not to look for installation files, like NuGet package
The release is also very simple, log in with Microsoft's account, and follow the prompts step by step, following the successful release
As with the NuGet package release, you will have to wait a while to be searched, and don't have to wait long, this is a link to the template file
Https://marketplace.visualstudio.com/items?itemName=junwenluo.ASPNETMVCCoreStarterKit
Of course, it can be found in Visual Studio.
OK, the project template is created to the end, the follow-up exercises or samples will be more convenient.
ASP. NET MVC Core Starter Kit