I'm just writing my first .Net Core application and am knocking into an issue on OSX.
I started writing this on PC and am just running some unit tests on OSX.
This line:
var localAppData = Environment.GetEnvironmentVariable("LocalAppData");
Returned the expected value on PC but returns null
on OSX. What would be the tidiest way to make this cross-platform?
Are there any additional considerations when applications are distributed in PKGs in terms of runtimes etc?
Many of the answers I'm finding in realtion to this talk about adding things to the launchd.conf which is all well and good for my development environment but what about when this is being run on a users machine?
What I'm trying is to find a way to retrieve some OSX equivalent of the Windows AppData.
A location where users applications can safely create files and store data that preconfigured on every OSX system.