Home All Groups Group Topic Archive Search About

Link an object to an Assembly

Author
21 Feb 2007 12:58 PM
Volker Thebrath
Hi,
I have a Program(exe) and a API (dll), both in c#, works very fine.
Now I'm looking for a way to link both together. To have only one
file(exe) to copy to the installation directory.

Is this possible?

Best Regards
Volker

Author
21 Feb 2007 7:04 PM
Mattias Sjögren
>I have a Program(exe) and a API (dll), both in c#, works very fine.
>Now I'm looking for a way to link both together. To have only one
>file(exe) to copy to the installation directory.
>
>Is this possible?

Yes. If you have the source code for both, I guess the easiest way is
to directly compile them to a single executable. If not, there are
tools that can merge compiled executables. Google for "ilmerge" or
"illink".


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
22 Feb 2007 11:41 AM
Volker Thebrath
> Yes. If you have the source code for both, I guess the easiest way is
> to directly compile them to a single executable. If not, there are
> tools that can merge compiled executables. Google for "ilmerge" or
> "illink".

I have the sources for both, but I need the DLL seperatly, too. So I
can't create a Project with both sources.
Or is the e possibility to compile code from an external directory
without copy the sourcecodes to the Solution?

Volker
Author
22 Feb 2007 5:36 PM
Mattias Sjögren
>I have the sources for both, but I need the DLL seperatly, too. So I
>can't create a Project with both sources.
>Or is the e possibility to compile code from an external directory
>without copy the sourcecodes to the Solution?

Yes, you can include source files from any directory in a project. You
could also just create another project in the same directory.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
22 Feb 2007 8:19 PM
Volker Thebrath
On 22 Feb., 18:36, Mattias Sjögren <mattias.dont.want.s***@mvps.org>
wrote:
> Yes, you can include source files from any directory in a project. You
> could also just create another project in the same directory.

Thanks, I'll give it a try.

Volker

AddThis Social Bookmark Button