iskiskisk

hello

can i make an exe program working without installing the framework

forexample , i made an program 20kb ,

no sense if i want to let my friend test it to download frame work

is there any way to attach used classes in my program in my program




Re: Visual C# General can i make exe file working without framework ?

Peter Ritchie

If you write a program with Visual C# you need to have the framework installed on the computer before it can run.






Re: Visual C# General can i make exe file working without framework ?

iskiskisk

no sense if i want to let my friend test it to download frame work

is there any way to attach used classes in my program in my program


is there another way






Re: Visual C# General can i make exe file working without framework ?

Peter Ritchie

iskiskisk wrote:

no sense if i want to let my friend test it to download frame work

That's like saying there's no sense in your friend having Windows installed to run a Windows application.

iskiskisk wrote:
is there any way to attach used classes in my program in my program

I'm not sure what you mean by "attach used classes". Do you want to have a class library that other people can use in addition to your program

iskiskisk wrote:

is there another way

No, a .NET application needs the .NET framework to be installed before it can run.






Re: Visual C# General can i make exe file working without framework ?

Azurewrath

I think he is trying to say if he could just attached the used classes, methods, etc so it doesn't need to framework. But I guess the framework is needed not just because of that, but because of the jit compiler too, right




Aw




Re: Visual C# General can i make exe file working without framework ?

Jeremy Filburn

The only way I know how is by using special software to create a native exe file.

Here is what XenoCode says they can do, but I am not sure if it really works!

Run .NET applications on any Windows PC
Native x86 executable generation allows your .NET application to run anywhere, with or without the Framework. Embed application-specific .NET and DirectX dependencies. (Windows 9x and NT4 targets not supported.)

XenoCode






Re: Visual C# General can i make exe file working without framework ?

iskiskisk

Thanks man






Re: Visual C# General can i make exe file working without framework ?

iskiskisk

Azurewrath
yes man , that is what i ment

===

Jeremy Filburn

i will check it






Re: Visual C# General can i make exe file working without framework ?

Peter Ritchie

99% of the time a .NET application is compiled to intermediate language (IL) which cannot run on any particular processor. Part of what the .NET framework does it to compile and optimize that for the architecture of the computer the application is run on. This is done in stages, on invocation may compile and optimize part of the application, while another invocation may compile and optimize more of the application.

If you're looking to write an application that does not need anything else installed to run then you should avoid managed languages. C++ may be a good place to start.