Visual Studio 2019 Nuget Tips
Install-Package时老是提示找不到Available Source,研究了下Nuget Package Manager的配置。发现有两个地方可以改:
1.Visual Studio中Tools|Options|Nuget Package Manager|Package Sources,添加一下:
2.或者直接改配置文件C:\Users\[your_user_name]\AppData\Roaming\NuGet\Nuget.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<disabledPackageSources>
<add key="Microsoft and .NET" value="true" />
</disabledPackageSources>
</configuration>