I need NuGet to automatically restore packages. At the moment, the referenced dlls are missing.
I have enabled
There is no reason to check-in anything underneath the packages folder. Optionally, you can check in the repositories.config file but technically this is not required.
Do I get it right that you have checked-in the nuspec and nupkg files within the Packages folder? if so, delete them. These will be restored, and their presence might be causing restore failures (I don't think NuGet package restore is checking for the presence of the package contents, and rather checks for the presence of the nupkg/nuspec file in the Packages folder, skipping the package from being restored if found)
In summary, check in only:
packagesfolder (optionally the
.nugetfolder and its contents
packages.configfor every project