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 6767933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:00:39+00:00 2026-05-26T15:00:39+00:00

I go into the Package Manager -> Package Sources options and remove the NuGet

  • 0

I go into the Package Manager -> Package Sources options and remove the NuGet official package source so that only my local source is available. Then I close visual studio 2010. As soon as I re-open Visual Studio, the NuGet official package source is still at the top of Available Package Sources. https://go.microsoft.com/fwlink/?LinkID=206669

I have tried exporting and importing settings, deleting relevant suo files to no avail. This happens even when I don’t open a solution.

One thing that I have found is that when I open VS the second time, the following config file is correct. C:\Documents and Settings{myusername}\Application Data\NuGet\NuGet.Config

As soon as I open the Package Manager under Tools -> Options, the official source gets added to NuGet.Config so,

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="Local Package Source" 
        value="http://nuget:8081/DataServices/Packages.svc/" />
  </packageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
</configuration

Is changed to…

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <!-- new line below -->
    <add key="NuGet official package source" 
        value="https://go.microsoft.com/fwlink/?LinkID=206669" />
    <add key="Local Package Source" 
        value="http://nuget:8081/DataServices/Packages.svc/" />
  </packageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
</configuration

This file doesn’t get changed when the Options dialog opens, just when I click on the Package Manager in the Options tree view.

Where is it getting this setting from and why does it keep inserting it?

Update copied from Ben Phegan on same issue on CodePlex

http://nuget.codeplex.com/workitem/1696

“I think this might be an issue with the implementation of AddOfficialPackageSourceIfNeeded() here”…
http://nuget.codeplex.com/SourceControl/changeset/view/2b36b2e1935a#src%2fVisualStudio%2fPackageSource%2fVSPackageSourceProvider.cs

  • 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-05-26T15:00:39+00:00Added an answer on May 26, 2026 at 3:00 pm

    There is some code within the NuGet vsix itself that adds the default feed back if there are no others in the list, but it appears that there is a bug in it:

        if (officialFeed == null)
        {
            // There is no official feed currently registered
    
            // Don't register our feed unless the list is empty (other than the aggregate). This is the first-run scenario.
            // It also applies if user deletes all their feeds, in which case bringing back the official feed makes sense.
            if (_packageSources.Count > 1)
            {
                return;
            }
    
        }
    

    This then falls through and adds the official feed as the first source. I would add another source so that you have >1 source (a local directory should work). This should prevent this behaviour.

    The Nuget.exe command has similar behaviour, however it is added by default regardless of the sources available.

    I believe this behaviour does differ by version. What version are you using?

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

Sidebar

Related Questions

I have 2 different webapps (package into different war files) which needs to share
I'm trying to place a class into a package where another public class is
Would it be OK to put my public interfaces into their own package (for
I package our server releases into zip files using a batch file (Windows), running
I'm writing an Ant script to package a project into a WAR file. The
I have simple SSIS package which reads data from flat file and insert into
I have simple SSIS package where I import data from flat file into SQL
I have an NAnt task ship to package my current .sql scripts into a
I saw this question Inject into private, package or public field or provide a
I've got TFS2010 up and running and building a webdeploy deployment package. Into my

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.