Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running C# application on computer without .Net

Status
Not open for further replies.

VBdevil

Programmer
Sep 19, 2002
75
IL
Hi,
I have a C# application that I want to run on another computer that does not have .Net Framework on it.

How can I run this program?
I don't want to Install .Net or Visual Studio on it..

Thanks
 
The C# compiler converts your program to IL. Not executable code. The CLR takes the IL, JITs it to make executable code, and runs it. No .NET runtime == no run.

You could install Mono. but the .NET runtime is freely downloadable. Why don't you want to install it?
 
Are you saying that I can't write an application in C# and then create a setup or something of the sort, and then install it on another computer that doesn't have .Net on it?

I'm used to writing applications in VB6 and then creating a setup (with the VB package and deployment wizard or InstallShield), and then installing the application on any computer I want using the setup, regardless of whether or not there's VB6 or Visual Studion installed on that computer..
I can't do this with a C# application?




 
You'd need to check the legalese on the MS web site, but I think you can redistribute the .NET runtime if you have the SDK. Think of it like Java - you need the runtime in order to run it.
 
you can make a setup project that installs the framework for you. .net needs the framework like vb6 neede the vb6run.dll thingie and like you need the flash plugin to see flash pages.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top