[英]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? 有解决方案吗
https://github.com/ligershark/side-waffle/wiki/How-to-create-templates-for-ASP.NET-Core https://github.com/ligershark/side-waffle/wiki/How-to-create-templates-for-ASP.NET-Core
Something like this? 像这样的东西? I just entered "ASP.core vsix template"
in Google... 我刚刚在Google中输入了"ASP.core vsix template"
...
There are also ASP.NET Core Template Packs: https://visualstudiogallery.msdn.microsoft.com/31a3eab5-e62b-4030-9226-b5e4c9e1ffb5 http://vsixgallery.com/extension/ae9d6285-3f2a-4cbe-9021-82eb4d8b8c74/ 还有ASP.NET核心模板包: https: //visualstudiogallery.msdn.microsoft.com/31a3eab5-e62b-4030-9226-b5e4c9e1ffb5 http://vsixgallery.com/extension/ae9d6285-3f2a-4cbe-9021-82eb4d8b8c74 /
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.