My C# project needs to read a file that is in the same location as the executable. The file is under <PROJECT>/bin/x64/Debug/input.txt and under <PROJECT>/bin/x64/Release/input.txt. In the same folders there is also the program.exe.
When executing manually the program.exe from those directories it reads the file and executes successfully. When trying to run the executable from the visual studio it cannot find the file.
Is there a way to resolve it?