Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS is not picking up DLLs installed through nuget

It seems whenever a package is installed through nuget TFS doesn't pick up the dlls files for that pacakge and it's becoming a pain working on the project with multiple developers when new DLLs are being added and old ones updated.?

The 'packages' folder is being checked in.

I've searched google and seem to find people with the same problem but no solution.

Is there a solution to this problem?

like image 952
Kyle Avatar asked Apr 08 '13 17:04

Kyle


People also ask

How do I get nuget package DLL?

Just build the class library by clicking the right click on solution explorer and you will see the NameOfLibrary. dll file in packages folder of your project directory. packages folder isn't displaying as folder in solution explorer. You can see them as References.

How do I force a nuget package to install?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.

Do I need .nuget folder?

nuget folder is used as a cache for packages downloaded to speed up project restore and compilation. It can safely be removed.


2 Answers

I would suggest not checking in the packages folder, and instead enable Package Restore.

like image 61
Julian Avatar answered Oct 16 '22 10:10

Julian


Check out TFS NuGetter, an integrated NuGet solution into TFS build process.

like image 2
KMoraz Avatar answered Oct 16 '22 11:10

KMoraz