How to make one executable visual studio, that users can run?

42 views Asked by At

Whenever I make an executable on visual studio I run into the same problems:

  1. There are multiple files that the user needs to run the program (not just 1). Even if I go into the publish settings and select to produce a single executable, usually it will still include more than one file sometimes and I don't know why.

  2. Windows will usually detect the program as a virus, EVEN if I make the program myself and there's nothing suspicious in the code. I can make ANY program that does ANYTHING and by default it will be flagged as a virus. How do I make it stop?

  3. Finally, sometimes even if I elect to produce one executable file, the user cannot run it if they do not have .net installed. How do I configure the settings so that the user can run the file without .NET?

In summary, I want to just make one executable file that is not flagged as a virus and the user doesn't need to install .NET (or anything) to run it, other than ONE executable file.

This is specifically in regards to Visual Studio because I can use other IDEs and I don't get these issues. Any VS, 2019, 2022, etc.

0

There are 0 answers