简体   繁体   English

我无法在Visual Studio 2015中创建任何Web项目

[英]I cannot create any web project in Visual Studio 2015

For some reason I cannot create a new web project after having installed the latest .NET Core SDK/CLI . 出于某种原因,在安装了最新的.NET Core SDK / CLI之后,我无法创建新的Web项目。 In the "New ASP.NET Web Application" dialog window I selected an "Empty" project and checked the "Web API" checkbox, before clicking the "OK" button. “新建ASP.NET Web应用程序”对话框窗口中,我选中了一个“空”项目,并在单击“确定”按钮之前选中了“Web API”复选框。 No error messages are displayed, absolutely nothing happens. 没有显示错误消息,绝对没有任何反应。 I tried a set of combinations of projects and checkboxes + tabbing and using space to invoke the button. 我尝试了一组项目和复选框+ tabbing和使用空间来调用按钮。 None of it works. 它都不起作用。 Also tried repairing VS and restarting computer. 还尝试修复VS并重新启动计算机。

Any ideas? 有任何想法吗?

无法单击“确定”按钮

UPDATE UPDATE

I have tried to uninstall and reinstall Visual Studio, also tried disabling all extensions and removing ReSharper. 我试图卸载并重新安装Visual Studio,也尝试禁用所有扩展并删除ReSharper。 Still no success. 仍然没有成功。 I read here that someone with the same issue had to use NetBeans (the horror), but solved it by reinstalling VS which does not seem to help in my case. 在这里读到有同样问题的人不得不使用NetBeans(恐怖),但通过重新安装VS来解决它,这在我的情况下似乎没有帮助。

UPDATE 2 更新2

Using the Process Monitor , the only thing I can derive from VS2015 are success messages in finding the ASP.NET template. 使用Process Monitor ,我可以从VS2015中获得的唯一功能就是找到ASP.NET模板的成功消息。

Process Monitor仅在单击“确定”时显示成功的消息

UPDATE 3 更新3

Following Jims advice: 跟随Jims建议:

devenv /resetsettings
devenv /resetuserdata
devenv /installvstemplates

This now results in an error message: 现在这会导致错误消息:

新错误

You can try and reset the visual studio templates and settings. 您可以尝试重置visual studio模板和设置。

devenv /resetsettings
devenv /resetuserdata
devenv /installvstemplates

These will restore all the settings to their defaults, and also importantly, reset all the project templates to their defaults. 这些将所有设置恢复为默认值,同样重要的是,将所有项目模板重置为默认值。

It could be an issue with the GAC. 这可能是GAC的一个问题。 This may be confirmed by this potentially related SO thread. 这可能由这个可能相关的SO线程确认

Please open the Developer Command Prompt as administrator and try running these commands: 请以管理员身份打开Developer Command Prompt并尝试运行以下命令:

gacutil -i "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\Publish\\Microsoft.VisualStudio.Web.Publish.dll"

gacutil -i "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\Publish\\Microsoft.VisualStudio.Web.Internal.Contracts.dll"

If you cannot find the DLLs in the paths I have given, please do a search in the various visual studio folders you have in Program Files until you find it, then update the path in the command above. 如果您在我给出的路径中找不到DLL,请在Program Files中的各种visual studio文件夹中搜索,直到找到它为止,然后在上面的命令中更新路径。

I too had a similar situation where in I was unable to create any project. 我也有类似的情况,我无法创建任何项目。 You can try going to Windows Update and install all the optional and recommended updates. 您可以尝试转到Windows Update并安装所有可选推荐的更新。 See if this works. 看看这是否有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用Xamarin在Visual Studio 2015中创建Tizen项目 - Cannot create tizen project in Visual Studio 2015 with Xamarin 为什么我不能在 Visual Studio 2015 中创建共享项目? - Why can't I create Shared Project in Visual Studio 2015? Visual Studio 2015无法调试xamarin项目 - Visual studio 2015 cannot debug xamarin project Visual Studio 2015:创建一个空项目 - Visual Studio 2015: Create an Empty Project 我无法在Visual Studio 2015中打开任何项目/项目,并且错误显示为“ microsoft.VisualStudio.Dialogs.DialogInitializationException - I can not open any project/item in visual studio 2015, and the error is shown "microsoft.VisualStudio.Dialogs.DialogInitializationException Visual Studio 2015中的Web测试项目无法正常工作,为什么? - web testing project in visual studio 2015 wont work, why? 无法在Visual Studio 2015 Web API项目中添加nuget程序包 - Can not add a nuget package in visual studio 2015 web api project Visual Studio 2015 - Web项目中缺少共享项目参考选项卡 - Visual Studio 2015 - Shared Projects Reference Tab Missing on Web Project 使用Visual Studio 2015无法解析.NET Core 1.1中的项目 - Cannot resolve a project in .NET Core 1.1 using Visual Studio 2015 如何为Visual Studio 2015 RC / .NET Core项目创建单元测试? - How to I create a unit test for a Visual Studio 2015 RC / .NET Core project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM