问题:
I'm getting "[project] nuget configuration is invalid" error.我收到“[项目] nuget 配置无效”错误。 I received an error like this before and used the 'Update Nuget package manager' solution mentioned here:我之前收到过这样的错误,并使用了此处提到的“更新 Nuget 包管理器”解决方案:
Unable to Install Any Package in Visual Studio 2015 无法在 Visual Studio 2015 中安装任何包
I've also tried the other solutions mentioned in that link to no avail.我还尝试了该链接中提到的其他解决方案,但无济于事。
- Restarting Visual Studio重新启动 Visual Studio
- Deleting nuget.config删除 nuget.config
- Deleting packages.config删除packages.config
- Updating nuGet Package Manager.更新 nuGet 包管理器。
Also, I'm able to see the nuGet Packages at the solution level and other projects within this solution.此外,我还可以看到解决方案级别的 nuGet 包以及此解决方案中的其他项目。
And, if I go to Package Manager Console (Tools -> NuGet Package Manager -> Package Manager Console), I can't see the projects having this issue in the project drop down, but I see the other projects in the solution.而且,如果我转到包管理器控制台(工具 -> NuGet 包管理器 -> 包管理器控制台),我在项目下拉列表中看不到有此问题的项目,但我在解决方案中看到了其他项目。
解决方案:
参考一: https://en.stackoom.com/question/2ZAta参考二: https://stackoom.com/question/2ZAta