Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed NuGet.config missing issue #458

Closed
wants to merge 4 commits into from
Closed

fixed NuGet.config missing issue #458

wants to merge 4 commits into from

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

@@ -24,6 +24,8 @@ public static class NuGetConstants

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.

@@ -24,6 +24,8 @@ public static class NuGetConstants

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.

4 participants