hi guys i am new here and i just need some help on something...i have a running c.sharp application on my computer(comput er A). This computer has the whole visual studio 2008 and .Net environment. I finished creating a program but now i want to run the program on another computer(comput er B). This other computer does not have any Visual studio or .Net framework...jow do i run my program on another computer(comput er B) that does not have any programming environment??
How to run a .NET program on a computer that does not have .NET framework installed?
Collapse
X
-
-
why create a C# program if it only run on a computer with .Net framework only
i dont like the sound of that because i just dont understand. I mean what is the point of creating programs with c# when they only run on my computer and others with .Net framework. What if i wanted to write a program for my client, that will help my clients, but they dont have .net framework?...Comment
-
There may be a way to compile C# code to include the .NET libraries compiled right into the executable, but I'm sure it's not really supported by Microsoft.
I googled C# native compiler and found a link to this...
Maybe try others? I have no idea how well this works so you'll have to do the digging on your own.
For what it's worth, most computers running Windows have .NET on them now. It's kind of an expected install. I think Windows 7 even puts it on as a part of windows update, but I'm not 100% sure on it so don't quote me.
If this is a huge issue, I'd honestly consider doing your programs in ANSI C++. C# is kinda like Java... it's just expected that you have the required frameworks/libraries installed.Comment
-
The analogy that GaryTexmo gave of the .Net library being like hte Java virtual machine is VERY appropriate. The point of the .Net framework is to give you a base to work from. The .Net framework provides your .Net code with everything from streams to the basic data types of your language via the CTS (int is the same as System.int32).
You can distribute the .Net compact framework with your code so that your customers don't have to download anything, but if the .Net framework requirement is really irksome a different language (not .Net based) would be another option. I have never tried compiling C# code into a native executable, so I cannot speak to the effectiveness of that.Comment
Comment