I'm trying to export a text-based game, existing entirely in the command prompt, from Visual Studio 2019. The game is written in C# with .NET Framework 4.6.
I've been trying everything to think of to get it to export, and it always works fine on my machine. Yet, as soon as it's on another person's machine, the same error is encountered: The program opens as a command prompt, then disappears immediately. Given that the program mostly relies on Console.ReadLine(), I don't believe that it could be finishing its execution and closing automatically.
I don't quite understand how to export this game in a way that will function. I've been experiencing this error solely on Windows computers (the program is only designed to run on Windows computers). I've tried exporting it both as Framework-reliant and Self-Contained. Even with Self-Contained, the error persists.
I've tried building and cleaning the game, publishing it from both the terminal and the "Publish" screen, trying all sorts of different settings. I really don't know what I'm doing wrong. Any help would be much appreciated!
If it helps, this is the settings I'm currently trying.