471,326 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

can a single file contain more than one assembly?

Okay, the other day I was talking with someone about assemblies. He said
something that I am not really sure about. He said that a DLL or EXE can
contain more then one assembly (although the IDE only works with one). Now,
I know that assemblies can be made up of more than one file, but I have
never heard about it where a single file has more then one assembly. I know
that files can have more than one module, but what about assemblies? Can
someone confirm or deny this?
Dec 17 '05 #1
5 2208
From what I've read, you can only have one manifest in a file, which means
that you can only have one assembly in a file, although that assembly can
span multiple files. If it is a multi-file assembly, only one of the files
can contain the manifest. You may find the following reference helpful, as
well as all the references it links to:

http://msdn.microsoft.com/library/de...assemblies.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
Okay, the other day I was talking with someone about assemblies. He said
something that I am not really sure about. He said that a DLL or EXE can
contain more then one assembly (although the IDE only works with one).
Now, I know that assemblies can be made up of more than one file, but I
have never heard about it where a single file has more then one assembly.
I know that files can have more than one module, but what about
assemblies? Can someone confirm or deny this?

Dec 17 '05 #2

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
Okay, the other day I was talking with someone about assemblies. He said
something that I am not really sure about. He said that a DLL or EXE can
contain more then one assembly (although the IDE only works with one).
Now, I know that assemblies can be made up of more than one file, but I
have never heard about it where a single file has more then one assembly.
I know that files can have more than one module, but what about
assemblies? Can someone confirm or deny this?


While an assembly can span multiple "files", a "file" cannot contain
multiple assemblies.

Willy.
Dec 17 '05 #3
From the other answers to this post I think there is a nomenclature problem
here.

Take a look at AL.EXE the Assembly Linker. This enables you to package
several assemblies into one. Is this what you need?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
Okay, the other day I was talking with someone about assemblies. He said
something that I am not really sure about. He said that a DLL or EXE can
contain more then one assembly (although the IDE only works with one).
Now, I know that assemblies can be made up of more than one file, but I
have never heard about it where a single file has more then one assembly.
I know that files can have more than one module, but what about
assemblies? Can someone confirm or deny this?

Dec 17 '05 #4
AL only takes "netmodule" or "resource" files as input to produce an
assembly! It cannot combine multiple "assembly" files into a single assembly
file.

Willy.
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:uX**************@TK2MSFTNGP12.phx.gbl...
From the other answers to this post I think there is a nomenclature
problem here.

Take a look at AL.EXE the Assembly Linker. This enables you to package
several assemblies into one. Is this what you need?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
Okay, the other day I was talking with someone about assemblies. He said
something that I am not really sure about. He said that a DLL or EXE can
contain more then one assembly (although the IDE only works with one).
Now, I know that assemblies can be made up of more than one file, but I
have never heard about it where a single file has more then one assembly.
I know that files can have more than one module, but what about
assemblies? Can someone confirm or deny this?


Dec 17 '05 #5
Ok, you're right and I feel like an idiot now. However I answered because I
know I've done this in the past and I can't remember now how the heck I did
it. I have about 20,000 projects in my archives.. I need to go do some
searching.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:ux**************@TK2MSFTNGP12.phx.gbl...
AL only takes "netmodule" or "resource" files as input to produce an
assembly! It cannot combine multiple "assembly" files into a single
assembly file.

Willy.
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:uX**************@TK2MSFTNGP12.phx.gbl...
From the other answers to this post I think there is a nomenclature
problem here.

Take a look at AL.EXE the Assembly Linker. This enables you to package
several assemblies into one. Is this what you need?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
Okay, the other day I was talking with someone about assemblies. He
said something that I am not really sure about. He said that a DLL or
EXE can contain more then one assembly (although the IDE only works with
one). Now, I know that assemblies can be made up of more than one file,
but I have never heard about it where a single file has more then one
assembly. I know that files can have more than one module, but what
about assemblies? Can someone confirm or deny this?



Dec 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by LP | last post: by
3 posts views Thread by Claudio Pacciarini | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.