When using .Net 6 I use
Environment.GetFolderPath( SpecialFolder.LocalApplicationData)
in Windows this maps to ~/AppData/Local
An in Linux to ~/.local/share
so it is configured well