Sunday, July 26, 2009

How to run a C# program?

I have a C# program in EXE file format. However, i bring it to my friend's computer, and it doesnt run. why? Could it be he doesnt have C# runtime environment? If that's the case, then every computer has to install C# runtime in order to run a c# program. Then this makes c# not portable as Java!!!

How to run a C# program?
I can't say for certain what the problem is, but not having the appropriate .NET framework would be one cause. C# uses .NET, and the appropriate versions need to be installed to run the program. That's right, every computer that tries to run a .NET program must have it installed.





Don't be so quick to hail Java. Java requires the Java runtime environment as well. Go to java.sun.com and see their JRE downloads. It's probably on your computer already.
Reply:You'll have to download the .NET framework. There is no other way. Download it from here:


http://www.microsoft.com/downloads/detai...





Hope this helps
Reply:Which version depends on what the programme was developed with. When running, the exe should through an error saying which version you need.





If not, just download them all. 1.1, 2 and 3.
Reply:I'm pretty sure you need to install the .NET framework.. Visual Studio 2005








http://msdn2.microsoft.com/en-us/downloa...





I hope that helps... (cause I'm only 80% sure that will work)


No comments:

Post a Comment