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

ILSpy doesn't respect the NUGET_PACKAGES environment variable #3090

Closed
geeknoid opened this issue Sep 29, 2023 · 2 comments
Closed

ILSpy doesn't respect the NUGET_PACKAGES environment variable #3090

geeknoid opened this issue Sep 29, 2023 · 2 comments
Assignees
Labels

Comments

@geeknoid
Copy link

I just installed a fresh machine, and I used the latest .NET 8 rc2 SDK. Doing so, my nuget package cache ended up in c:.tools.nuget instead of the prior ~/.nuget which was previously customary. The environment contains a NUGET_PACKAGES environment variable that points to this new location and is respected by the .NET tooling.

ILSpy however hardcodes its lookup to ~/.nuget as seen here:

Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages")

Would it be possible to add support for the NUGET_PACKAGES environment variable?

Thanks.

@geeknoid geeknoid added the Bug label Sep 29, 2023
@christophwille
Copy link
Member

@siegfriedpammer siegfriedpammer self-assigned this Sep 30, 2023
@geeknoid
Copy link
Author

geeknoid commented Sep 30, 2023

FYI, as a workaround, I created an NTFS junction from ~/.nuget to c:\.tools\.nuget and that made ILSpy happy.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2024
mattsh247 pushed a commit to mattsh247/ILSpy that referenced this issue Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants