You will need to get the NuGet credential provider from this repo https://github.com/microsoft/artifacts-credprovider and follow the instructions in the README.md file and see if that helps.
If it still doesn’t work, try building the application using visual studio and it should pop up a sign in screen.