问题描述
当我尝试创建一个新的项目MVC5,我得到一个模板选择对话框,不加载任何选项。我无法选择项目类型(例如,MVC,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.
这似乎是这样的:
要产生这个问题,我去的文件 - >新建项目 - >的Visual C# - >网络 - > 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旗舰版更新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)的\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\ PrivateAssemblies \\ Microsoft.VisualStudio.Web.Internal.Contracts.dll
- C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\ PrivateAssemblies \\ Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll
- C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\ PrivateAssemblies \\ Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll
推荐答案
我从微软的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 assembliesthat did not get removed from installation process. Even we still don't know whichinstallation process sequence caused the issue yet, we've be able to solve the problemby the following steps. Please try the workaround and let us know if it doesn't fix yourproblem. Thank you very much for all the support.
-
关闭VS.结果
转到C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\ PrivateAssemblies,
删除以下组件如果它们存在:
Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dll
Microsoft.VisualStudio.Web.WindowsAzure.Explorer.dll
Microsoft.VisualStudio.Web.Internal.Contracts.dll
Close VS.
Goto C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies,delete the following assemblies if they exist:Microsoft.VisualStudio.Web.WindowsAzure.Contracts.dllMicrosoft.VisualStudio.Web.WindowsAzure.Explorer.dllMicrosoft.VisualStudio.Web.Internal.Contracts.dll
启动VS2013与更新3,尝试创建一个ASP.NET Web应用程序,看看模板
存在和项目可以成功创建。
Start VS2013 with update 3, try to create a ASP.NET Web application, see if the templateexists and project can be created successfully.
这篇关于无法创建新的项目MVC5或Visual Studio 2013的任何其他ASP .NET项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!