I had to update the nuget.config file with a v3 source.
It is located here: C:\Users\{username}\AppData\Roaming\NuGet\nuget.config
and needs the following content:
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</packageSources>
</configuration>