缺少ASP.NET 5模板 [英] Missing ASP.NET 5 Templates
问题描述
我正在遵循此设置教程
遇到了一个问题.在本教程中,说明如下:
And have come across a problem. In the tutorial the instructions are as follows:
启动Visual Studio2015.从文件"菜单中,选择新建">项目".
Start Visual Studio 2015. From the File menu, select New > Project.
选择ASP.NET Web应用程序项目模板.它出现在 已安装>模板> Visual C#> Web.将项目命名为ContosoBooks 然后单击确定.
Select the ASP.NET Web Application project template. It appears under Installed > Templates > Visual C# > Web. Name the project ContosoBooks and click OK.
这很好,但是在下一步:
This is fine, but in the next step :
在新建ASP.NET项目"对话框中,选择"Web应用程序",在 ASP.NET 5预览模板.另外,确保主机在云中 复选框未选中,然后单击确定.
In the New ASP.NET Project dialog, select Web Application under ASP.NET 5 Preview Templates. Also, make sure the Host in the cloud checkbox is not selected and click OK.
我没有看到ASP.NET 5 Preview模板!
I am seeing no ASP.NET 5 Preview templates!
我唯一要注意的是我的身份验证状态为无身份验证,但是我已登录,所以我不确定这意味着什么或是否是一个因素.
The only thing I am noticing is that my Authentication states No Authentication but I am signed in so I am not sure what this means or whether or not this is a factor.
我安装的Visual Studio版本是"Community 2015".
The version I have installed of Visual Studio is "Community 2015".
我已经按照本文.
我希望对这个主题有更深入了解的人可以帮助我,因为我无法找到同一问题的任何线索等,或者可能导致模板丢失的原因.
I am hoping that someone with a more thorough knowledge on the topic can help me out as I have not been able to find any threads etc. of the same issue or what could be causing the Templates to be missing.
推荐答案
I have concluded, by following another stackoverflow question on How to check the ASP.NET version loaded on a system as I noticed that the templates were categorized in the ASP.NET versions (4.6.1 & 5) in the tutorials but mine were not.
因此,我随后进行了检查,我在 C:\ Windows \ Microsoft.NET \ Framework 中的文件如下
So I then checked and my files in C:\Windows\Microsoft.NET\Framework are as follows
没有透露v5.0目录.我已对此进行了纠正,现在所有模板都可用
Revealing no v5.0 directory. I rectified this and now all of the templates are available
修正案:
要修复它:
我转到 http://www.asp.net/downloads 并下载了 ASP.NET MVC 5
我确保在下载过程中检查了开发人员工具.
I ensured I had Developer Tools checked in the download process.
该问题现已解决-当我有了MVC 5模板文件时.因为我下载了它们,所以我有了它们...而不再没有它们.
This issue was now resolved - As I then had the MVC 5 template files. Because I downloaded them, so I had them... and no longer didn't have them.
备用修补程序:
此外,根据我的研究,有些人没有包含开发人员工具.解决方法:转到旧伙伴添加或删除程序",找到您的Microsoft Visual Studio 20xx安装,更改"并安装Microsoft Web Developer Tools
Furthermore From my research, some people had not included Developer Tools. To resolve: go to old mate 'Add or remove programs' and find your Microsoft Visual Studio 20xx install, 'change' and install Microsoft Web Developer Tools
这篇关于缺少ASP.NET 5模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!