简体   繁体   English

Visual Studio 2015 ASP.Core项目模板

[英]Visual studio 2015 ASP.Core project template

Im trying to create a project template that I can reuse for multiple projects. 我试图创建一个项目模板,我可以重用于多个项目。 I've tried exporting the template and making it a vsix. 我已经尝试导出模板并使其成为vsix。

It doesn't matter what I do, whenever I use that template, it does not load any files, references etc. 无论我做什么,每当我使用该模板时,它都不会加载任何文件,引用等。

Is there any documentation or does anyone know how to make a template for ASP.core? 是否有任何文档或有谁知道如何为ASP.core制作模板?

EDIT: I followed the instructions in the first link you gave me, but it still doesn't work. 编辑:我按照你给我的第一个链接的说明,但它仍然无法正常工作。 I don't get all the files I made in my template. 我没有得到我在模板中创建的所有文件。 Any solutions? 有解决方案吗

我的项目

在此输入图像描述

I found the following answer to be helpful when I was running into a similar issue with a NET Core project template: Project template for Visual Studio 2015 当我遇到与.NET Core项目模板类似的问题时,我发现以下答案有用: Visual Studio 2015的项目模板

The suggestion to add 建议添加

<CreateInPlace>true</CreateInPlace>

in between the tag for 在标签之间

<TemplateData></TemplateData>

fixed it for me; 为我修好了; otherwise, I would simply end up with an empty project. 否则,我最终会得到一个空项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM