项目杂项文件的 NuGet 包还原失败:值不能为 null 或空字符串.参数名称:root.0 0 [英] NuGet Package restore failed for project Miscellaneous Files: Value cannot be null or an empty string. Parameter name: root. 0 0

查看:25
本文介绍了项目杂项文件的 NuGet 包还原失败:值不能为 null 或空字符串.参数名称:root.0 0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 vs 2012 中有这样的错误:项目杂项文件的 NuGet 包还原失败:值不能为 null 或空字符串.参数名称:root.0 0

I have such error in vs 2012: NuGet Package restore failed for project Miscellaneous Files: Value cannot be null or an empty string. Parameter name: root. 0 0

我发现这是一个已修复的错误 https://nuget.codeplex.com/workitem/37802.8版但我在 https://nuget.codeplex.com 上找不到 2.8 版本不安装2.8版本是否可以修复错误?或者如何获得2.8?

I see that it's a bug https://nuget.codeplex.com/workitem/3780 that was fixed for version 2.8 But I can't find the 2.8 version on https://nuget.codeplex.com Is it possible to fix the error without the installation of the 2.8 version? Or how to get the 2.8?

推荐答案

我通过删除 Visual Studio 解决方案用户选项文件 (.suo) 然后重新启动 VS 解决了这个问题.

I fixed this by deleting the visual studio solution user options file (.suo) and then restarting VS.

更新:对于 VS 2017,您需要删除位于解决方案目录中名为 .vs 的隐藏文件夹(感谢@Tien Dinh!)

UPDATE: For VS 2017, you need to delete a hidden folder named .vs located in solution directory (Thanks @Tien Dinh!)

这篇关于项目杂项文件的 NuGet 包还原失败:值不能为 null 或空字符串.参数名称:root.0 0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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