Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8389163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:39:02+00:00 2026-06-09T18:39:02+00:00

So, I’ve enabled package restore on my solutions – Install-Package NuGetEnablePackageRestore I’ve installed and

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:39:03+00:00Added an answer on June 9, 2026 at 6:39 pm

    The problem ended up being that the TFS administrator used a “user variable” for the EnableNuGetPackageRestore environment variable. I never would have guessed this right off the bat :(.

    I went and watched her configure it again, and noticed that it was wrong…had her correct it, and now it works fine.

    Thanks for all the advice!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.