I've recently started work on a .NET Core Global Tool and I have the need to store some user context data, similar to how kubectl config set-context
works and affects other kubectl commands. Is there a standard pattern for this with .NET Core Global Tools? Or should this just be written to LocalSettings or similar?
Asked
Active
Viewed 77 times
2

Rob Bell
- 3,542
- 5
- 28
- 49
-
1I don't know what the standard pattern is, but I tend to use the home directory for the currently logged in user and use a .folder (i.e. `/home/username/.my-app-name` on a Unix-like). You could always use AppData/Local on Windows if you'd like – Jamie Taylor Jun 18 '19 at 17:07