库NuGet配置无效 [英] Library NuGet configuration is invalid
本文介绍了库NuGet配置无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
VS2015更新3.
VS2015 Update 3.
我创建了一个普通的.net核心类库. 右键单击Project-> References-> Manage Nuget包 引发以下错误?
I created a plain .net core class library. Right-click on Project->References-> Manage Nuget packages throws the following error?
缺少什么?
推荐答案
尝试以下操作:
- 重新启动VS ,然后查看是否可以解决您的问题. (关闭+重新打开解决方案也可能会起作用)
- 如果重新启动没有帮助,请尝试删除nuget.config,如下所述.
- Restart VS and see if this fixes your problem. (Close + Reopen Solution might work as well)
- If restarting didn't help, try to delete nuget.config, explained below.
2012年以前的解决方案:
在我撰写本文时,以下方法对我有效:
At the time I wrote this, the below approach worked for me:
只需删除位于此处的nuget.config:
Just delete the nuget.config which resides here:
%AppData%/Nuget/Nuget.config
或解决方案文件夹中的nuget.config(如果有).
or the nuget.config in your solution folder, if there is any.
当您单击
管理Nuget软件包
Manage Nuget Packages
或者尝试删除解决方案文件夹中的nuget.config.
Or try to delete the nuget.config in your solution folder.
这篇关于库NuGet配置无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文