Visual Studio 2015的项目模板 [英] Project template for Visual Studio 2015

查看:344
本文介绍了Visual Studio 2015的项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图为Visual Studio 2015创建一个项目模板.我创建了一个ASP.NET 5类库(在Visual Studio 2015的Web部分下),并使用了选项File-> Export template.当我尝试使用导出的模板创建项目时,仅创建.xproj文件.模板中的文件和依赖项未添加.但是相同的过程对于普通的类库项目也可以正常工作. 我想念什么吗??

I am trying to create a project template for Visual Studio 2015. I created a ASP.NET 5 class library (under the web section of Visual studio 2015) and used the option File->Export template. When I tried to create project using the exported template, only the .xproj file gets created. The files within the template and the dependencies are not getting added. But the same procedure works fine for normal class library project. Am I missing something.?

推荐答案

我找到了实现此目的的方法.打开zip文件,然后编辑.vstemplate文件.缺少的行是

I found the way to do this. Open up the zipfile and edit the .vstemplate file. The line that is missing is

<CreateInPlace>true</CreateInPlace>

此行之间

<TemplateData></TemplateData>

这解决了.NET Core 1.0.1 Tooling Preview 2和VS2015 Update 3的问题.

This solves the problem for .NET Core 1.0.1 Tooling Preview 2, VS2015 Update 3.

这篇关于Visual Studio 2015的项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆