Skip to content

ILSpy doesn't respect the NUGET_PACKAGES environment variable #3090

@geeknoid

Description

@geeknoid

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions