- Go to
GitHub
→Settings
→Developer settings
→Personal access tokens
→Tokens (classic)
- Generate Personal Access Token (PAT) with the required scope:
read:packages
andrepo
- Run
dotnet nuget remove source DevExLeadPackages
anddotnet nuget add source https://nuget.pkg.github.com/devexlead/index.json --name DevExLeadPackages --username <your-github-username> --password <your-github-token>
- Check sources
dotnet nuget list source
- Run
dotnet tool update --global dxc --no-cache --prerelease --verbosity detailed
- Check global tools
dotnet tool list -g
Troubleshooting
- Ensure your
nuget.config
file has the correct source and credentials. Open or createnuget.config
in your user profile directory (e.g.,%AppData%\NuGet\nuget.config
on Windows). - Test Authentication
& "C:\Windows\System32\curl.exe" -u "$username:$pat" https://nuget.pkg.github.com/devexlead/index.json