Currently, my application is a C# console application, but I now got the request to make it able to be run as a service on a windows server.
I already edited my code according to this example: .NET console application as Windows service but I am struggling with my config, and log files.
Currently, I stored 3 files which I require for my application to run under Environment.SpecialFolder.ApplicationData + @"\MyApplication\"
, but I suppose this won´t suit if I want to run it as a service OR as a console application on the same machine (either one or the other at a time) and access the same config files.
Where would I store those files?
Additional info: The user which would execute the CLI has Admin rights.