Felice Pollano
Felice Pollano

Reputation: 33262

NuGet install-package from solution

Is there a way to add a package to a project when this package is already added to another project? I would like to avoid depending on the net because sometimes we are require to work in a non connected scenario. I know I can simple add a reference and browse, but I suspect I will loose the ability to update automatically the reference in the future.

Upvotes: 0

Views: 163

Answers (1)

Julian
Julian

Reputation: 20324

One way to be able to work with NuGet in a non-connected state, is to supply an alternative package source, either locally on your own computer, or on a machine on your internal network. You can add new package sources in Visual Studio through Tools > Options > Package Manager > Package Sources.

We do this ourselves for two reasons:

  • With a local package source you can work without an internet connection.
  • With a local package source and the official NuGet package source disabled, we have better control of which packages are available. This way will we for instance avoid undesired updates in our development group until we've approved them.

Upvotes: 1

Related Questions