I have a C# app that needs to be able to read and write files that will be available to all users.
I thought that this would give me an appropriate location to store these files:
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
I have 2 apps that need to access the same folders. The main app is UWP and there is a utility app which is a console app. Running on Windows 10.
The main app returns this:
C:\Users\User\AppData\Local\Packages\ba131026-0d4a-4706-afec-3246196e7d60
The console app returns the much simpler:
C:\ProgramData
I don't mind which I use, but I just need them to be able to both access the same folder. Is there some method to always get the same folder from both types of app?