6

Many times when I clone a git repo most or all of the references are broken. The dlls are not there. I searched and found nothing about the problem. I feel like it has something to do with nuget.

What's the problem?

Jasen
  • 11,837
  • 2
  • 30
  • 48
alin
  • 115
  • 5

2 Answers2

3

There will be a .nuget folder in the repo and it will contain nuget.exe. Some repos include a script that will do the work of restoring the missing packages. But you can also do it manually by issuing the following command to nuget:

nuget restore "path\to\.sln"
mrahhal
  • 3,322
  • 1
  • 22
  • 41
1

The dll are not there most probably because they are ignored: you should have a .gitignpre with a *.dll in it.

That means you need to run nuget in order to download the right dependencies (dll): this is a declarative approach, which means you only version the nuget file (very small) instead of the dlls (much larger).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250