icon

NuGet restore

Installs packages with NuGet.

⚠️   The Xamarin development platform is not officially supported. [More info](https://blog.bitrise.io/post/xamarin-support-ends-in-2022-on-bitrise)

The NuGet restore Step downloads the latest or specified NuGet version and runs a restore with it to install missing .NET packages based on your Xamarin solution (.sln). You can check the installed packages in your build's log.

Configuring the Step

  1. Add the NuGet restore Step to your Workflow after the Git Clone Repository Step so that the Step can download and install all the necessary packages.
  2. Provide the Path to Xamarin solution. By default, the Step will use the same solution file that you have provided when you added your app, but you can also modify it if you wish.

Optionally, you can set what to cache if you click Options and then Set the level of cache input:

  • local caches the packages in your build directory.
  • global caches the global-packages folder.
  • all caches local and global.
  • none disables caching for the Step.

Troubleshooting

If your build fails due to a specific NuGet version, you can try to run your build with another version. Click the NuGet version input and select a NuGet version.

Useful links

Related Steps

Similar steps

Restores build cache using a cache keys. This Step needs to be used in combination with Multikey Save Cache or Save Cache.

Restores build cache using a cache key. This Step needs to be used in combination with Save Cache.

Restores cached Carthage dependencies. This Step needs to be used in combination with Save Carthage Cache.

Restores cached Cocoapods dependencies. This Step needs to be used in combination with Save Cocoapods Cache.