Has it happened to you that you wrote a C# program (a Console Application) but it did nothing when you ran it?
- Running it from VS Code works
- Running it using
dotnet runworks - But if you run the
.exeit does nothing. There is no error. It just exits.
It happened to me. The issue was this: in the .csproj file I had:
<OutputType>WinExe</OutputType>
change it to:
<OutputType>Exe</OutputType>
and then it will work!