The working directory is by default set next to the project file when starting from inside of Visual Studio, but when you start the exe directly, the working directory is set to where the exe is located.
You can change the working directory in the project settings if wanted.