Home > database >  .exe of a Visual Studio solution not running
.exe of a Visual Studio solution not running

Time:11-06

I am writing a small text adventure/mystery game and for playtesting I am trying to make it into an .exe file that I can send to playtesters. I uploaded it to google drive (because gmail wouldn't let me attach the .exe file) and sent it via gmail, but they are not able to open the app. When I re-download it from google drive it doesn't work for me either. The original .exe does run on my computer. I wrote it in Visual Studio 2019 in C#. Any help is greatly appreciated, as I am a beginner and know almost nothing about actually packaging solutions. Thanks!

CodePudding user response:

You need the project folder to run it not just the .exe file inside it.

CodePudding user response:

You could try Publish your app by Build menu, or use Costura.Fody package, which incorporates your app's dlls in standalone exe

CodePudding user response:

If you have an external reference (external dll that you imported other than the default one Visual Studio had use). You need to include the references (the DLL files) too.

And if you want to achieve to upload your application into one single file, compressing the folder (making it into .zip [usually with 7-Zip or Windows Explorer]) would be the best and the most common way for you to do it.

  •  Tags:  
  • c#
  • Related