I have a console App (dotnet core)
Console.WriteLine("Hello World!"); string Folder = @"C:/Users/Admin/Desktop/local-folder"; DirectoryInfo d = new DirectoryInfo(Folder); bool isExist = Directory.Exists(Folder); bool isExist2 = d.Exists; The issue is that isExist and isExist2 take always false even the folder exists !
It seems that , each time, the folder path is considered as a relative path.
So how can I fix this?
Thanks,