I am building a .netcore library.And testing it using .net core console application. I have the following folder structure inside Library:
WrapperLib
|->FolderXYZ
|->FileABC.txt
|->ControllerClass.cs
I am trying to access FileABC.txt from ControllerClass.cs using relative path "\FolderXYZ\FileABC.txt". But when I run application using .net core console application, by default the program is taking running application's home directory as Current working directory. How can I solve this and give correct reference to FileABC.txt from ControllerClass.cs