Nuget install or restore packages, download dll from packages.config

If you download a solution with nuget packages installed but the reference is not resolved pay attention to the packages folder.
Usually the packages folder contain a subfolders with dll and xml for each installed packages.
Sometimes when you download a solution from web does not contain dll but only xml.
To get the all right dll
If there is already a folder “packages” with the subfolder packages, delete it, otherwise nuget will notfy that the packages are already installed.

Then go to your project folder where the file packages.config is located
Go to nuget site and download nuget console (I place it in c:\tmp\nuget.exe).
Execute this command in the command line and all the missing packages will be installed correctly

C:\mysolution\myprj>C:\tmp\nuget.exe install packages.config -OutputDirectory ..\packages


Informazioni su Andrea Regoli

Project Manager .Net Developer WPF WP7 Asp.Net c# javascript ajax SQL sharepoint
Questa voce è stata pubblicata in Uncategorized e contrassegnata con , , , , , , . Contrassegna il permalink.


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


Stai commentando usando il tuo account Chiudi sessione /  Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. 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 )


Connessione a %s...

This site uses Akismet to reduce spam. Learn how your comment data is processed.