Manually add the protocolVersion=3 attribute to the NuGet.Config file:
For Linux installation: The file is located under
~/.config/NuGet/NuGet.ConfigFor a Windows installation: Locate the file usually under
%appdata%\NuGet\NuGet.Configand add/v3/to the source URL.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="ArtifactoryV3Remote" value="http://artifactory:8081/artifactory/api/nuget/v3/nuget-remote" protocolVersion="3" />
</packageSources>
...
...
</packageSourceCredentials>
</configuration>