I have a simple C# project in visual studio 2017.
It is a Console Application (.NET Framework).
I want to compile it to an .exe and then copy that .exe to the server where it will run.
When I do: Build -> Publish MyApp
I get a setup.exe file with a bunch of other files that I presume setup.exe would use to install on the target machine.
When I do: Build -> Build MyApp
VS comes back instantly without any popup. I can see a .exe here: MyApp\bin\Debug\MyApp.exe
that has a timestamp that indicates it was built from Build -> Build MyApp
I want to control where the .exe is deployed on the server because we already have a scheme that adds version numbers to the .exes so they are well controlled for backing them out and we know exactly what is changing on the server (this is in contrast with running a setup.exe).
Should I just use the MyApp\obj\Debug\MyApp.exe? [Seems strange that I would use a .exe from the Debug folder].
What other build options should I try?