I recently came across the Nuget Package restore extension which enables a developer to not actually check in DLL's/libraries to TFS & another developer would be able to get the same just prior to the build. This is what we were looking for, particularly when we use external DLL's & hence decided to use it.
I installed the Nuget Package restore, Right clicked on Solution node in Solution Explorer window & clicked Enable Nuget Package restore.
Changes I observed:
- .nuget folder with 3 files - NuGet.config, NuGet.exe, NuGet.targets.
- Only one project file was modified. (According to this link each of the project file should be modified to import the NuGet.targets MsBuild task). However, in my case only one project file was modified. Is this correct? I guess not.
Test:
- I deleted a few DLL's required for the solution to run from different projects. NuGet downloaded the required DLL's in the project that was modified during the installation & placed it under Packages folder. For other projects, the missing DLL's were not downloaded.
I was expecting that all missing DLL's would be downloaded. Am I correct?
Is there something that I'm missing here or doing wrong?
Note: I have ticked the "Allow Nuget to download missing packages during Build" present under Options -> Package Manager -> General.