On macOS create a folder named CredentialProviders
under:
$HOME/.local/share/NuGet
Then unzip the contents of CredentialProvider.Gen2Support.zip
into it.
Be sure to have installed the Azure Artifacts Credential Provider, under $HOME/.nuget/plugins
.