Skip to content

Package Restore Operations

Restore missing NuGet packages for your projects.

Package restore downloads packages referenced in project files but not present locally.

Restore packages when:

  • Cloning a repository
  • After cleaning the solution
  • Package files are missing
  • After changing branches

The extension automatically restores packages:

  • When opening a solution
  • Before building
  • When adding a project
  1. Right-click on a project or solution
  2. Select “Restore NuGet packages”
  3. Wait for the restore to complete
  1. Press Ctrl+Shift+P
  2. Type “NuGet: Restore Packages”
  3. Select the command

During restore:

  1. Project files are scanned for package references
  2. Missing packages are identified
  3. Packages are downloaded from sources
  4. Packages are extracted to the local cache
  5. Project references are resolved

Monitor restore progress:

  • Terminal panel shows download progress
  • Output panel shows detailed logs
  • Status bar shows current operation

If restore fails:

  1. Check internet connectivity
  2. Verify package sources are accessible
  3. Check for authentication issues
  4. Clear NuGet cache and retry:
    Terminal window
    dotnet nuget locals all --clear

If restore is slow:

  1. Check network speed
  2. Use a local package cache
  3. Mirror packages locally
  4. Configure parallel downloads