So, I'm trying to create an application that requires reading scripts in a subfolder called "scripts". My code I have problems with:
string script = Console.ReadLine(); string path = Directory.GetCurrentDirectory(); string sciptpath = path + "/scripts/" + script;
This works great on Windows. But on Linux (running using Mono Runtime), it goes to the current users home directory ... not to the executable file directory. This is mistake? And can anyone suggest a workaround?
user1750201
source share