In order to run program outside of Visual Studio it is necessary to publish it and then execute published files.