Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Getting a .Net game to work

How can I get a small game I wrote in C# to work on a computer that doen't have .NET?

I am using GDI+.

Jerry Spiegal
Sunday, January 26, 2003

Well, off the top of my head i'd say "you can't". Of course, you're using functionality from a runtime, so take away the runtime, no functionality. It's like saying "how do I run an Java applet without installing Java?" You don't. What's the problem with putting the .NET runtime onto this machine? It's not tiny, but it's not vast either...

If you're perhaps asking is there a way to compile your game (or whatever) to incorporate required libraries, like compiling a VB program to a single exe containing previously linked dlls, then no. You're out of luck. It just doesn't work that way. If anyone knows better, I sincerely apologise, and will eat any piece of headgear suggested, provided I can cook and season it to my preference. The same applies if I have badly misunderstood what you're asking.

Andrew Cherry
Sunday, January 26, 2003

"Stealth install" the .NET Framework:

"Using Visual Studio .NET to Redistribute the .NET Framework"
http://msdn.microsoft.com/en-us/dnnetdep/html/vsredistdeploy.asp

".NET Framework Setup.exe Bootstrapper Sample" (installs .NET if required then runs your setup):
http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/001/830/msdncompositedoc.xml

Duncan Smart
Tuesday, January 28, 2003

Oops, that first link should have been:
http://msdn.microsoft.com/library/en-us/dnnetdep/html/vsredistdeploy.asp

Duncan Smart
Tuesday, January 28, 2003

Mmmm well yes there is that of course - only now it does have .NET on it... A harsher person would call that cheating! ;) But it is your only solution.

Andrew Cherry
Tuesday, January 28, 2003

Or you could port your game code to a non .NET language, like C++.

What benefits is your game gaining from using C#? How hard would it be to use the equivalent C++ features? (Such as the STL for your collections, and reference counted pointers for garbage collection.)

Just a though.

Anonymous game developer
Friday, January 31, 2003

*  Recent Topics

*  Fog Creek Home