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

Change default .nuget/package folder .NET Core #6716

Closed
SerhiiS-in6k opened this issue Aug 5, 2016 · 6 comments
Closed

Change default .nuget/package folder .NET Core #6716

SerhiiS-in6k opened this issue Aug 5, 2016 · 6 comments

Comments

@SerhiiS-in6k
Copy link

Text from documentation:
If not specified, the default NuGet package cache is used. It is found in the .nuget/packages directory in the user's home directory on all operating systems (for example, /home/user1 on Linux or C:\Users\user1 on Windows).
Can I change .nuget/packages location?

@jcansdale
Copy link

I think the NUGET_PACKAGES environment variable might be what you're after.

@SerhiiS-in6k
Copy link
Author

Thanks it really works. but I have one more issue dotnet create two folders .nuget/Nuget and .dotnet. How to prevent to create this folder?

@jcansdale
Copy link

I don't know about the .dotnet folder. Where does this appear?

@SerhiiS-in6k
Copy link
Author

SerhiiS-in6k commented Aug 9, 2016

I tried to use dotnet cli without installation(just launch from the path in a script) . But cli creates two folders:

/home/<user>/.nuget
/home/<user>/.dotnet

I think it will cause an error because of it may add issues to simultaneous builds on CI.

@blackdwarf
Copy link

@SerhiiS-in6k are you installing using the dotnet-install.sh script?

@blackdwarf
Copy link

Since there was no action here for a while now, I will close this issue. If the problem still repros, please reopen.

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
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

No branches or pull requests

3 participants