我遇到了一些不同的问题,但大多数问题我都可以解决,但是这一问题仍然存在.
I've been having a few different issues and most I've been able to work around however this one is persisting.
我尝试将新项目添加到我的MVC 5.0项目中(右键单击添加新项目->带有布局的MVC5视图页面(剃刀),我也尝试了其他选项,它们同样会出错).
I try to add a new item to my MVC 5.0 project (right click add new item --> MVC5 View Page with Layout (Razor), I've also tried other options and they similarly error).
我收到的错误消息是:
我尝试删除并重新安装nuget软件包工具,但是删除后,不再显示在已安装或在线或任何要添加回去的区域中.因此,我进行了维修,并且工作正常,然后可以再次添加项目.现在,一天后,我 去添加新项目,然后再次出现此错误.我不想每次关闭/重新打开VS时都继续修复此问题,因为修复安装大约需要30分钟.
I tried to remove and reinstall the nuget package tool but after removing it no longer showed under installed or online or any of the areas to add it back. So I did a repair and that worked and then I could add items again. Now, a day later I went to add a new item and I get this error again. I don't want to keep repairing this every time I close/reopen VS because it takes about 30mins for it to repair the install.
推荐答案
嗨MadPnut,
欢迎访问MSDN论坛.
>>我尝试删除并重新安装nuget软件包工具,但删除后不再显示在已安装或在线或任何需要添加的区域中.
卸载了"Visual Studio 2015的Nuget软件包管理器"后,您可以转到工具-扩展程序和更新…然后,您需要转到 在线-> Visual Studio库,然后选择Nuget程序包管理器和 下载以进行安装.或者,您可以直接访问 ' nuget ' ,您将看到一个安装NuGet"按钮,将其下载并安装到您的系统上.安装成功后,请再次重新打开VS.
After you uninstalled the ‘Nuget Package Manager for Visual Studio 2015’, you can go to Tools-Extensions and update… Then you need to go to Online --> Visual Studio Gallery, then Select Nuget Package Manager and download it to install. Or you can directly access 'nuget' and you will see an 'Install NuGet' button, download it and install it on your system. After the installation is successful, please reopen VS again.
如果上述方法不起作用,请尝试以下解决此问题:
- Devenv/ResetSettings:恢复IDE的默认设置,可以选择重置为指定的VSSettings文件.
- Devenv/ResetAddin:删除相关联的命令和命令UI
- Devenv/ResetSkipPkgs :它将使VS在启动VS时加载跳过的软件包.
- Devenv/resetuserdata:清除旧的用户数据
- Devenv /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.
- Devenv /ResetAddin: Removes commands and command UI associated with the specified Add-in.
- Devenv /ResetSkipPkgs: it will make VS to load the skipped packages while launching VS.
- Devenv /resetuserdata: clear up the old user data
然后重新打开您的VS作为管理员,请再次进行测试.
最好的问候,
Sara
更多推荐
Visual Studio预览版15
发布评论