473,388 Members | 995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 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 2321
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: LP | last post by:
Hi, I have a site which runs on .Net technology. The site is already deployed and running. I need to change 1 file for some small enhancement. Please tell me, how can I compile that 1 file and...
1
by: Asim Jalis | last post by:
Building a Single Assembly DLL with C# and C++ Code I am trying to create a single assembly composed of managed C++ and C# code, and I want to do this on the command line. I have confirmed...
1
by: Scott Chang | last post by:
Hi all, I loaded the following program 'HelloMCPP' to my MS VC++ .NET (2002) that is installed on my Windows XP Professional PC: ------------------------------------- AssemblyInfo.cpp...
1
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ...
8
by: suresh_C# | last post by:
Dear All, What is difference between Portable Executable (PE) file and a Assembly? Thanks, Mahesh
2
by: Andy Fish | last post by:
Hi, I have a single-file aspx file (no codebehind). when I try to do this: <%@ Import Namespace="MySql.Data.MySqlClient" %> I get this: CS0246: The type or namespace name 'MySql' could...
3
by: Claudio Pacciarini | last post by:
Hi everyone, I have a question about .NET code sharing and reuse, and also about application design best practices / guidelines. Currently, we have many different .NET projects in source...
1
by: archana | last post by:
Hi all, I am confuse regarding concept of code behind model and single file model.. I have heard that single file model compiles dynamically. suppose i have application in which i am having...
4
by: Alan Mailer | last post by:
Again, I'm new to VB.net and there is something I need help with: Like (I assume) many of us, over time I want to be able to create some VB.net classes that I might want to use in more than one...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.