Home All Groups Group Topic Archive Search About

Compiling internally instead of as a DLL?

Author
5 May 2006 11:06 AM
Hugh Janus
Hi all,

I have added a class library project to my VB solution.  All works fine
but when I compile the project, the compiler creates an external DLL
file.  What I would rather it do is compile the class library project
into the main VB .exe app that I am compiling.  Is this possible?  If
so, how?

Thanks

Author
5 May 2006 11:39 AM
Patrice
Either add the source (I believe there is also a "add as a link" feature
that allows all projects to refer to the same source file) or you'll likely
have to use the command line compiler that allows to compile source code
into "modules" that you can then combine when building the final exe...

--
Patrice

"Hugh Janus" <my-junk-acco***@hotmail.com> a écrit dans le message de news:
1146827167.814906.195***@y43g2000cwc.googlegroups.com...
Show quoteHide quote
> Hi all,
>
> I have added a class library project to my VB solution.  All works fine
> but when I compile the project, the compiler creates an external DLL
> file.  What I would rather it do is compile the class library project
> into the main VB .exe app that I am compiling.  Is this possible?  If
> so, how?
>
> Thanks
>
Author
5 May 2006 11:40 AM
Herfried K. Wagner [MVP]
"Hugh Janus" <my-junk-acco***@hotmail.com> schrieb:
> I have added a class library project to my VB solution.  All works fine
> but when I compile the project, the compiler creates an external DLL
> file.  What I would rather it do is compile the class library project
> into the main VB .exe app that I am compiling.  Is this possible?  If
> so, how?

I do not see much sense in doing that because typically libraries are
intended to be reusable and replaceable.  However, search for ILLink and
ILMerge on the Web...

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
5 May 2006 12:18 PM
Phill W.
Hugh Janus wrote:

> I have added a class library project to my VB solution.  All works fine
> but when I compile the project, the compiler creates an external DLL
> file.  What I would rather it do is compile the class library project
> into the main VB .exe app that I am compiling.  Is this possible?  If
> so, how?

If you build a library project, you get a library (Dll) out of it.

Move the class files into the main Executable's Project and it'll all
get built in together.

HTH,
     Phill  W.