🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #25

Re: How to embed DLL (native C#) to Executable ?

#25
From: Andre
Date: Fri, 05 May 2006 20:59
39 lines
2452 bytes
Don't let the word DLL mislead you and remind you of the older days, .NET 
did change the conventional DLL dramticlly. It's acctully called Assemblies 
now. Read up on the subject, i bet you'll be impressed by the features. I 
was. Ok.... your original problem was that you do not want to deploy a dll 
file with you exe.

A feature of assemblies is that one assembly (either an exe or a dll) can 
contain unlimited number of namespaces. the only downside here is that you 
have to compile it as whole. you cannot compile your 'dll'-source code 
seperate of your exe source code.

just copy the code from your 'dll' to the exe's file. Now your exe has 2 
namespaces. check that you include using [dll assembly name] at the begining 
with using System....

compile.

Now you dll is 'merged' with exe.

i hope this was what you needed.




"Marc Rohloff [TeamB]" <"on request"> wrote in message 
news:ef2a42zb1k58$.dlg@marcrohloff.com...
> On Sat, 18 Feb 2006 03:42:41 +0100, IT wrote:
>
>> Hello Marc,
>
>> Every body said .NET technology will be end of DLL
>
> I believe that is a misquote. It is often said that .NET is the end of
> "DLL Hell" because multiple versions of a DLL can be maintained 'side
> by side'.
>
> -- 
> Marc Rohloff [TeamB]
> marc rohloff -at- myrealbox -dot- com 
Technical Details
Message-ID: <445bbcc1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43f34390$3@newsgroups.borland.com> <1kb1qdc7p2thj.dlg@marcrohloff.com> <43f688a9@newsgroups.borland.com> <ef2a42zb1k58$.dlg@marcrohloff.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,2ad284b7d43713b0
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andre" <andretruter@webmail.co.za>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <43f34390$3@newsgroups.borland.com> <1kb1qdc7p2thj.dlg@marcrohloff.com> <43f688a9@newsgroups.borland.com> <ef2a42zb1k58$.dlg@marcrohloff.com>
Subject: Re: How to embed DLL (native C#) to Executable ?
Date: Fri, 5 May 2006 22:59:49 +0200
Lines: 41
Organization: Bluewater Systems
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 0618-3, 05/05/2006), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 196.207.45.253
Message-ID: <445bbcc1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1146862785 196.207.45.253 (5 May 2006 13:59:45 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail