首页 文章

NuGet还原失败,只有我的机器上的“包含多个nuspec文件”

提问于
浏览
1

我使用的是VS2015U3和NuGet 3.4.4 . 在Windows 10周年更新上运行 . 在Visual Studio中运行或在命令行上运行时,NuGet还原会出现此错误 .

我在两个独立的解决方案文件上测试了这个,结果相同 . 但是构建服务器和我的笔记本电脑恢复包没有任何问题 .

我尝试下载新的NuGet.exe,修复Visual Studio,卸载并重新安装NuGet包管理器并清除NuGet缓存 .

以下是在命令行上运行NuGet restore .. \ mySolution.sln的输出:

恢复NuGet包RestSharp.102.7.0 . 恢复NuGet包Rx-Core.2.2.5 . 恢复NuGet包Rx-Interfaces.2.2.5 . 恢复NuGet包Newtonsoft.Json.4.0.8 . 恢复NuGet包Rx-Linq.2.2.5 . 恢复NuGet包Rx-Main.2.2.5 . 恢复NuGet包Rx-PlatformServices.2.2.5 . 恢复NuGet包Rx-WPF.2.2.5 . 恢复NuGet包Rx-XAML.2.2.5 . 恢复NuGet包LiveCharts.0.6.5 . 恢复NuGet包CommandLineParser.1.9.71 . 警告:包中包含多个nuspec文件 .

packages.config项目中的错误包中包含多个nuspec文件 .

使用的NuGet配置文件:C:\ Users \ Rob \ AppData \ Roaming \ NuGet \ NuGet.Config C:\ ProgramData \ nuget \ Config \ Microsoft.VisualStudio.Offline.config

使用的源:C:\ Users \ Rob \ AppData \ Local \ NuGet \ Cache C:\ Users \ Rob.nuget \ packages \ https://api.nuget.org/v3/index.json C:\ Program Files(x86)\ Microsoft SDKs \ NuGetPackages \

1 回答

  • 4

    运行“Nuget.exe locals all -clear”解决了这个问题

相关问题