|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Making an exe that doesn't need .NET frameworkHi,
I never understood how can it be that most programs don't ask me to install .NET, although I know that many companies use C#. Is there any way to make an exe of a C# program that doesn't need .NET to be installed? If so, how can I do it? Thanks, Ofir. "ofiras" <ofi***@gmail.com> wrote in message Because the .NET Framework is already installed on the vast majority of PCs news:163be675-17bd-4357-a440-25395e56a5d4@w40g2000yqd.googlegroups.com... > I never understood how can it be that most programs don't ask me to > install .NET running either XP or Vista... > Is there any way to make an exe of a C# program that doesn't need .NET to Yes.> be > installed? > If so, how can I do it? http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=.NET+without+frameworkIMO, this is a complete waste of time and money... > I never understood how can it be that most programs don't ask me to You (effectively) can't. While C# is a generic language and doesn't > install .NET, although I know that many companies use C#. Is there any > way to make an exe of a C# program that doesn't need .NET to be > installed? If so, how can I do it? technically require .NET, it does require a host platform that provides the same functionality. You can read about this in the official C# standard and other sources. Search for ISO/IEC 23270, "CLI, "CLR", "CLS", etc. For all intents and purposes however .NET is really the only game in town (on Windows anyway - you can read about the Mono project and others however). If an installation program isn't asking you to install it then it either assumes it's already installed (very good chance these days), will be installed (manually), or it's specifically checking that it's installed (note BTW that it's shipped with the latest MSFT OSs but may not be installed by default - it can be installed using the "control panel" however). In any case, you can't run your program without it, even if you find "tricks" that rely on it indirectly. You might find "ngen.exe" interesting for instance but all this does is JIT-compile your code up front. "Larry Smith" <_nospam@_no_spam.com> wrote in message
http://www.xenocode.com/Products/Postbuild-for-NET/?gclid=CNLlyt2tgpsCFZQU4wod1GPVsg
news:eJVAKrp6JHA.1372@TK2MSFTNGP05.phx.gbl... >> Is there any way to make an exe of a C# program that doesn't need .NET > > You (effectively) can't. Why you would want to, though, is another question... >>> Is there any way to make an exe of a C# program that doesn't need .NET You wouldn't. Hence the reason I used the word "effectively" (perhaps a poor >> >> You (effectively) can't. > > http://www.xenocode.com/Products/Postbuild-for-NET/?gclid=CNLlyt2tgpsCFZQU4wod1GPVsg > > Why you would want to, though, is another question... choice of words). While it technically can be done using a 3rd-party product like the one you cited (compiling your managed app into native code ahead of time), this is no longer a .NET app on the client's machine anymore (which is what the op was presumably asking about). It's also risky IMO so I agree with your original comment. It's a "complete waste of time and money".
Show quote
Hide quote
On 11 ×™×•× ×™, 15:44, "Larry Smith" <_nospam@_no_spam.com> wrote: Ok. Actually I just needed it so other people that use my program> > I never understood how can it be that most programs don't ask me to > > install .NET, although I know that many companies use C#. Is there any > > way to make an exe of a C# program that doesn't need .NET to be > > installed? If so, how can I do it? > > You (effectively) can't. While C# is a generic language and doesn't > technically require .NET, it does require a host platform that provides the > same functionality. You can read about this in the official C# standard and > other sources. Search for ISO/IEC 23270, "CLI, "CLR", "CLS", etc. For all > intents and purposes however .NET is really the only game in town (on > Windows anyway - you can read about the Mono project and others however). If > an installation program isn't asking you to install it then it either > assumes it's already installed (very good chance these days), will be > installed (manually), or it's specifically checking that it's installed > (note BTW that it's shipped with the latest MSFT OSs but may not be > installed by default - it can be installed using the "control panel" > however). In any case, you can't run your program without it, even if you > find "tricks" that rely on it indirectly. You might find "ngen.exe" > interesting for instance but all this does is JIT-compile your code up > front. won't have to install .NET (from what I saw, most people don't have it) Thanks, Ofir. "ofiras" <ofi***@gmail.com> wrote in message That's completely incorrect.news:4feebf2a-32bf-41d5-a632-69ee8d66ec6e@h28g2000yqd.googlegroups.com... > from what I saw, most people don't have it The vast majority of Windows XP and Vista installations already include at least one version of the .NET Framework... "Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message To clarify:news:OgIbKZq6JHA.1196@TK2MSFTNGP03.phx.gbl... > "ofiras" <ofi***@gmail.com> wrote in message > news:4feebf2a-32bf-41d5-a632-69ee8d66ec6e@h28g2000yqd.googlegroups.com... > >> from what I saw, most people don't have it > > That's completely incorrect. > > The vast majority of Windows XP and Vista installations already include at > least one version of the .NET Framework... > Windows XP does *not* include the .NET Framework. It is true that a substantial number of XP installations have a version of .NET installed for one reason or another. I am not sure if the total qualifies as vast majority or not. It is a common myth that .NET is installed with one of the service packs for XP (SP2, SP3)--it is not. It is a common myth that .NET is installed automatically as part of a Critical or High Priority Automatic Update to XP--it is not. There may be some OEMs that include .NET as part of their standard XP image, however, I am not able to verify that at the moment. It is logical since some third-party software that OEMs load need .NET to run. One interesting anecdote. I recently purchased a Samsung netbook with XP Home SP3 pre-installed. No .NET. If you have MSDN or similar you may want to download one of the XP install images as an experiment. Load it in a VM, and notice that there is no .NET framework. J Because of the same reason they never ask you to install a video driver.
Cor If you like the convenience and simplicity of coding in C# but don't want to use .NET, the way to go
might be to use something like Delphi. "ofiras" <ofi***@gmail.com> wrote in message I never understood how can it be that most programs don't ask me tonews:163be675-17bd-4357-a440-25395e56a5d4@w40g2000yqd.googlegroups.com... Hi, install .NET, although I know that many companies use C#. Is there any way to make an exe of a C# program that doesn't need .NET to be installed? If so, how can I do it? Thanks, Ofir.
c# newbie needs help with backgroundworker
ShortWay in C# conversion from C++ to C# Why there are two diffrent result in two almost same formula code access security Weird behavior of ListView.ShowGroups property No Implicit Conversion For Strongly Typed DataSet In VS2005 Website Problems - Outlook Express N/A extending existing application Memory used in unmanaged space Greek letters with subscripts/superscripts |
|||||||||||||||||||||||