无法在 Visual Studio 2013 中创建新的 MVC5 项目或任何其他 ASP .NET 项目 [英] Can't create new MVC5 project or any other ASP .NET projects in Visual Studio 2013

查看:15
本文介绍了无法在 Visual Studio 2013 中创建新的 MVC5 项目或任何其他 ASP .NET 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试创建一个新的 MVC5 项目时,我得到一个不加载任何选项的模板选择对话框.我无法选择项目类型(例如 MVC、Web 表单、Web API)并创建项目.

When I attempt to create a new MVC5 project, I get a template selection dialog that doesn't load any options. I am unable to select a project type (ex. MVC, Web forms, Web API) and create the project.

看起来像这样:http://i.imgur.com/OVLZfSj.png

为了产生这个问题,我去文件 -> 新建项目 -> Visual C# -> Web -> ASP .NET Web 应用程序

To produce this issue, I go to File -> New Project -> Visual C# -> Web -> ASP .NET Web Application

单击确定"后,我选择我想要的 ASP .NET 项目模板的位置就空着.

After clicking OK, the point where I select the ASP .NET project template I want just sits there empty.

我正在运行 Visual Studio 2013 Ultimate Update 3 并尝试了以下操作:

I am running Visual Studio 2013 Ultimate Update 3 and have tried the following:

  • 安全模式
  • 重置 Visual Studio
  • 运行 devenv/installvstemplates
  • 通过设置运行修复

更新:下面的 xinqui 回复为我解决了这个问题.我删除了以下 3 个文件,现在可以创建新的 ASP .NET Web 应用程序项目!

UPDATE: This has been resolved for me by xinqui's response below. I deleted the following 3 files and am able to create new ASP .NET Web Application projects now!

  • C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEPrivateAssembliesMicrosoft.VisualStudio.Web.Internal.Contracts.dll
  • C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEPrivateAssembliesMicrosoft.VisualStudio.Web.WindowsAzure.Contracts.dll
  • C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEPrivateAssembliesMicrosoft.VisualStudio.Web.WindowsAzure.Explorer.dll

推荐答案

我来自 Microsoft Web 平台和工具团队.在我们得到的所有问题报告中,我们发现有几个额外的程序集没有从安装过程中删除.即使我们仍然不知道哪个安装过程顺序导致问题,我们已经能够解决问题通过以下步骤.请尝试解决方法,如果它不能解决您的问题,请告诉我们问题.非常感谢大家的支持.

I'm from Microsoft web platform and tools team. In all of the problem reports we get, we find that there are several extra assemblies that did not get removed from installation process. Even we still don't know which installation process sequence caused the issue yet, we've be able to solve the problem by the following steps. Please try the workaround and let us know if it doesn't fix your problem. Thank you very much for all the support.

  1. 关闭VS.
    转到 C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEPrivateAssemblies,删除以下程序集(如果存在):Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dllMicrosoft.VisualStudio.Web.WindowsAzure.Explorer.dllMicrosoft.VisualStudio.Web.Internal.Contracts.dll

  1. Close VS.
    Goto C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEPrivateAssemblies, delete the following assemblies if they exist: Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll Microsoft.VisualStudio.Web.Internal.Contracts.dll

用更新3启动VS2013,尝试创建一个ASP.NET Web应用程序,看看模板是否存在并且可以成功创建项目.

Start VS2013 with update 3, try to create a ASP.NET Web application, see if the template exists and project can be created successfully.

这篇关于无法在 Visual Studio 2013 中创建新的 MVC5 项目或任何其他 ASP .NET 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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