How to stop NuGet check for new missing packages during a build (… or what to do if the the missing packages are not downloaded during the build!)

Every time you do a build, by default NuGet check and possibly download missing packages.

As stated in the output windows when making a build, if you want “To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck ‘Allow NuGet to download missing packages during build.’ “.

Because this check takes some time, during normal coding and rebuilding, you don’t need necessarily to have that default option set … and may be you want to disable it: obviously, the first time you build a project downloaded from a repository, you need to have that option enabled to make it compile correctly!

You can modify that option going to Tools -> NuGet Package Manager and then unchecking “Automatically check for missing packages during build in Visual Studio” (alternatively, you can go to Tools -> Options and then select the NuGet Package Manager section).

GitHubrebuild

On the contrary, if your missing packages are not downloaded during a build, may be you have that option unchecked (by default it is checked  but you could have unchecked it and  you don’t remember …. 😉

 

Annunci

Informazioni su Enzo Contini

Electronic engineer
Questa voce è stata pubblicata in Windows, Windows Phone/Mobile. Contrassegna il permalink.

Lascia un Commento/Leave a comment

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...