NuGet Package Management
Credential Injection for Private Feeds
Securely access private NuGet feeds with automatic credential injection.
Overview
Section titled “Overview”Credential injection allows you to access authenticated NuGet feeds without storing passwords in configuration files.
Supported Platforms
Section titled “Supported Platforms”- Azure Artifacts
- Private NuGet servers
- Authenticated package sources
- Corporate NuGet feeds
Configuration
Section titled “Configuration”Setting Up Credentials
Section titled “Setting Up Credentials”- Open the NuGet Manager
- Click the settings icon
- Select “Configure Credentials”
- Add your feed URL and credentials
Credential Storage
Section titled “Credential Storage”Credentials are stored securely:
- Encrypted in VS Code’s secret storage
- Never stored in plain text
- Per-user configuration
- Not committed to source control
Using Azure Artifacts
Section titled “Using Azure Artifacts”For Azure DevOps feeds:
- Get your Personal Access Token (PAT)
- Configure it in the NuGet Manager
- The extension will inject credentials automatically
Authentication Flow
Section titled “Authentication Flow”When accessing a private feed:
- Extension detects authenticated feed
- Retrieves stored credentials
- Injects them into the NuGet request
- Package operation proceeds normally
Troubleshooting
Section titled “Troubleshooting”Authentication Failed
Section titled “Authentication Failed”If authentication fails:
- Verify credentials are correct
- Check PAT hasn’t expired
- Ensure proper feed permissions
- Reconfigure credentials
Feed Not Accessible
Section titled “Feed Not Accessible”If you can’t access the feed:
- Verify feed URL is correct
- Check network connectivity
- Ensure you have access rights
- Test credentials in a browser