Home All Groups Group Topic Archive Search About

Re: Making an exe that doesn't need .NET framework

Author
11 Jun 2009 2:06 PM
ofiras
On 11 יוני, 15:48, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac***@gmail.com> wrote:
Show quoteHide quote
> On Jun 11, 8:39 am, ofiras <ofi***@gmail.com> wrote:
>
> > Hi,
> > I never understood how can it be that most programs don't ask me to
> > install .NET,
>
> Because either they do not use .NET at all (most of the time) or you
> already have the framework.
>
> >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.
>
> I think it can be done, I would not suggest it though, you will end
> with a BIG .exe to start with

So is there a way to make it work witout .NET? maby if I add the dll
files to the exe folder? (If can be done as I said, how do I do it?)
Thanks,
Ofir.

Author
11 Jun 2009 2:22 PM
Mark Rae [MVP]
"ofiras" <ofi***@gmail.com> wrote in message
news:d01f44b4-3023-438f-a60f-ff0a8bd2017f@t21g2000yqi.googlegroups.com...

> So is there a way to make it work witout .NET? maby if I add the dll
> files to the exe folder? (If can be done as I said, how do I do it?)

I've already answered your question...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Are all your drivers up to date? click for free checkup

Author
11 Jun 2009 2:26 PM
pudchuck
>
> So is there a way to make it work witout .NET? maby if I add the dll
> files to the exe folder? (If can be done as I said, how do I do it?)
> Thanks,
> Ofir.- Hide quoted text -
>
> - Show quoted text -

I doubt this would work. There are many supporting elements for .NET
assemblies (GAC, CAS, etc.) I can't imagine a .NET assembly
functioning without this infrastructure. I would love you to prove me
wrong however, just as long as you shared your secret.

What version of the .NET Framework are you targeting? I have some
applications that run on .NET 1.1 and 2.0 while others require .NET
3.5 SP1. I've obviously had less trouble deploying applications that
use older versions of the .NET framework since they have been included
with the Windows OS for quite some time.
Author
11 Jun 2009 4:40 PM
Mr. Arnold
"ofiras" <ofi***@gmail.com> wrote in message
news:d01f44b4-3023-438f-a60f-ff0a8bd2017f@t21g2000yqi.googlegroups.com...
On 11 יוני, 15:48, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac***@gmail.com> wrote:
Show quoteHide quote
> On Jun 11, 8:39 am, ofiras <ofi***@gmail.com> wrote:
>
> > Hi,
> > I never understood how can it be that most programs don't ask me to
> > install .NET,
>
> Because either they do not use .NET at all (most of the time) or you
> already have the framework.
>
> >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.
>
> I think it can be done, I would not suggest it though, you will end
> with a BIG .exe to start with

So is there a way to make it work witout .NET? maby if I add the dll
files to the exe folder? (If can be done as I said, how do I do it?)
Thanks,
Ofir.


The only .NET language that doesn't need the .NET Framework to execute is
C++ .NET. All other .NET languages, which are managed code languages,
managed by the .Net Framework,  need the .Net Framework in order to execute.

<http://www.dotnetpowered.com/languages.aspx>


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4148 (20090611) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Author
11 Jun 2009 5:41 PM
Jeff Johnson
"Mr. Arnold" <MR. Arn***@Arnold.com> wrote in message
news:OyLmrNr6JHA.1568@TK2MSFTNGP06.phx.gbl...

> The only .NET language that doesn't need the .NET Framework to execute is
> C++ .NET.

And then only if you're writing unmanaged code, right?
Author
11 Jun 2009 11:00 PM
Mr. Arnold
"Jeff Johnson" <i.get@enough.spam> wrote in message
news:Oi4zTvr6JHA.1420@TK2MSFTNGP04.phx.gbl...
> "Mr. Arnold" <MR. Arn***@Arnold.com> wrote in message
> news:OyLmrNr6JHA.1568@TK2MSFTNGP06.phx.gbl...
>
>> The only .NET language that doesn't need the .NET Framework to execute is
>> C++ .NET.
>
> And then only if you're writing unmanaged code, right?

That's correct.


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4149 (20090611) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



Post Thread options