I developed a WinForms application (using C#, with visual studio 2008) and I have a few questions regarding how to build it properly:
-
Will the exe release file be able to run on other computer with only the required .net framework and not visual studio (or any other visual-ish program)? The exe file size is only around 50kb, which is way too small for such an application so I really doubt it. I did try this on other computer with .net installed and it seemed to work fine, just want to reassure that though.
-
Is there any way to include the .net framework functions that I use into my application so that it will run on any other Windows computer (with .net framework installed or not)? As in, include everything in a single exe file, just click-click and run.
Edit: When distributing the program, the 50kb exe file is enough, right? Or should I deliver the whole release folder?
Yes, your executable will run fine on another computer as long as it has the corresponding .Net package and any referenced assemblies.
No, there is no way to run your application on a machine without .Net installed. .Net is installed out of the box unless you’re running WinXP. You can ship .Net installers with your app.