(I am using Visual Studio 2017)
I started a small console application. Bomb Discord C #. Therefore, I always ran this program using Visual Studio. After that, I wanted to put the .exe file on the server so that this bot stayed online all day.
The .exe file is missing from the directory.
So, I started the application again and saw that this console is open from a different path.
"C: \ Program Files \ dotnet" and this .exe is called "dotnet.exe"
When I want to run this .exe file manually, it closes instantly (maybe because of the missing line of code Console.ReadLine();I don’t know).
Can someone tell me what to change in Visual Studios settings to have a .exe file in my correct directory for my console application?
The attached figure shows the bin directory, where the .exe file should normally be. Exist. DLL file, but I need .exe ..

source
share