So, I've enabled package restore on my solutions - Install-Package NuGetEnablePackageRestore
I've installed and updated NuGet on the TFS Build Server
I've created the environment variable on the TFS Build Server - http://www.centrolutions.com/blog/post/2012/07/05/NuGet-and-TFS-2010-Automated-Build.aspx
I've deleted all of my packages.config files and started over again on every project.
I've added the .nuget folder path to the build job, along with a defined Build Agent Folder
I've almost finished my noose and plan on hanging myself at dawn...is there something I'm missing?
Forgot to put TFS Build errors
C:\Builds\10.......nuget\nuget.targets (76): Package restore is disabled by default. To give consent, open the Visual Studio Options dialog, click on Package Manager node and check 'Allow NuGet to download missing packages during build.' You can also give consent by setting the environment variable 'EnableNuGetPackageRestore' to 'true'.
and
C:\Builds\10.......nuget\nuget.targets (76): The command ""C:\Builds\10.......nuget\nuget.exe" install "C:\Builds\10......\packages.config" -source "" -o "C:\Builds\10......\packages"" exited with code -1.
Removed full path for security.
DISCOVERY:
My TFS administrator set up the environment variable as a USER variable! I just figured I would ask her to show me exactly how she configured it and as soon as she did, I realized it was wrong.
I am no longer getting the Package restore error...wooo! I am however getting "Unable to find version" errors, which makes me think that the TFS box doesn't know of the proper package sources. I've verified that the package source is accessible from the TFS build box, also I've configured NuGet on that box to have reference to the package shares.
Is it possible to do this without a package server? I have been using file shares for all of my local builds, but I'm wondering if the rules change when it hits the TFS box. Do I need to define my package sources in the Nuget.config file?