Similar to the NuGet CLI, make sure that protocolVersion=3 is added to the NuGet.config file. However, not all Visual Studios have the option to add credentials to the source via the UI. Sometimes you'll have to make sure that you have the next element inside the config file.