No system-wide NuGet.Config location on Linux?
See original GitHub issueThe documentation states that NuGet will use the XDG_DATA_HOME
environment variable to decide where a global configuration should be. This doesn’t appear to be working, but also seems like the wrong approach to me.
Why is there not a standard system-wide configuration file in, say, /usr/local/share/
in all cases? The use case for us is that we would like to define “language level” docker images, configured for our environment (NuGet points at our artifact storage, for example). In this case we can’t specify a user, as it would constrain downstream images too much, and we also can’t use /root/.nuget
because we forbid running containers as root
.
Maven has this sort of scheme, and it works beautifully there. It also seems NuGet supports this, but only on Windows (%APPDATA%
or thereabouts) Can the same not be done for NuGet on Linux?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue!
If you believe this issue was closed out of error, please comment to let us know.
Happy Coding!
Rather unhelpful to close the issue just two days after it starts making progress.