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

Fix default NuGet config sources path on CoreCLR #472

Closed
ChengTian opened this issue Apr 21, 2015 · 3 comments
Closed

Fix default NuGet config sources path on CoreCLR #472

ChengTian opened this issue Apr 21, 2015 · 3 comments
Assignees
Labels
Functionality:SDK The NuGet client packages published to nuget.org Platform:Xplat Priority:2 Issues for the current backlog. Type:Bug
Milestone

Comments

@ChengTian
Copy link

The current path we use to create default NuGet config sources is wrong.

We should use local application data folder it. @davidfowl found a good way to get the path from environment variable. See https://github.com/mono/mono/blob/master/mcs/class/corlib/System/Environment.cs#L653.

See current code: https://github.com/NuGet/NuGet.Configuration/blob/dev/src/NuGet.Configuration/PackageSource/PackageSourceProvider.cs#L68-L78

@yishaigalatzer
Copy link

We can use the environment variable LOCALAPPDATA and fallback if its empty to XDG_DATA_HOME mono style.

@yishaigalatzer
Copy link

We think this is fixed already, please verify and close

@zhili1208
Copy link
Contributor

it's fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:SDK The NuGet client packages published to nuget.org Platform:Xplat Priority:2 Issues for the current backlog. Type:Bug
Projects
None yet
Development

No branches or pull requests

6 participants