Skip to content

Conversation

@zhili1208
Copy link
Contributor

NuGet/Home#2445

the fix here is to check nuget.config in appdata, if there is no source, add nuget.org to it and create a track file. If the track file exist, nuget will not add nuget.org again.

And this fix is only for global nuget.config.

tested upgrading from 3.3 to 3.4 scenario, it works well

@zhili1208
Copy link
Contributor Author


public static readonly string FeedName = "nuget.org";

public static readonly string AddV3TrackFile = "AddV3Track.config";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call the file NuGetOrgAdd.trk and base the behavior on the existence of the file.


public static readonly string FeedName = "nuget.org";

public static readonly string AddV3TrackFile = "NuGetOrgAdd.trk";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make this all lower to avoid xplat issues like we have with nuget.config

@emgarten
Copy link
Member

emgarten commented Apr 5, 2016

Verify that loading the machine wide settings is cached here and isn't read an extra time just for this check. If it does we should look at checking this lazily after zero sources are found.

@zhili1208
Copy link
Contributor Author

Verified machine wide is cached, this check is only for appdata setting, will not read machine wide here

@emgarten
Copy link
Member

emgarten commented Apr 5, 2016

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants