473,226 Members | 1,417 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,226 software developers and data experts.

what are multi file assemblies good for?

What are multi file assemblies good for?
What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a
single multi file assembly (A.DLL+A.NETMODULE)?
Jul 21 '05 #1
6 8084
Hi Cody,

Multi-file assemblies are simply assemblies that consist of more than one
file.
Multi-file assemblies are basically used when you want an inter-operability
between different languages,i.e,
maybe some of your programmers only know VB, maybe you need to interop with
some old C/C++ code.
Now you could put each language in its own assembly, but then you get stuck
with a poor organization model.
So,you can have multi-file assemblies where each file may be for a different
language.
You can read up more on this on the following link:
[Multi-file Assemblies]
http://blogs.msdn.com/grantri/archiv...07/175745.aspx

The biggest advantage of using multi-file assemblies over multiple
assemblies was a more compact organization model.
But,now in the coming version of VB.NET,i.e,Whidbey,you can have a single
file assembly with, VB, C#, C++, and
even native code all in one file! Theoretically you can even link classic
static .LIBs into your brand new C# assembly.
So,multi-file assemblies are on their way out!

HTH

Mona

"cody" <de********@gmx.de> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
What are multi file assemblies good for?
What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a
single multi file assembly (A.DLL+A.NETMODULE)?

Jul 21 '05 #2
cody wrote:
What are multi file assemblies good for?
What are the advantages of using multiple assemblies (A.DLL+B.DLL)
vs. a single multi file assembly (A.DLL+A.NETMODULE)?


An assembly is a unit of deployment, type definition and security. A module
is just a module - it takes its security permissions from the assembly, and
it cannot be deployed on its own. Having multiple assemblies means that you
can put code that require few permissions in one and types that require many
permissions in another assembly. (Each assembly can be marked as requiring
certain minimum, permissions). This means that if the code is downloaded,
the assembly (and hence the types within) that require the few permissions
will load, but the assemblies requiring many permissions may not load.

As to an assembly made up of multiple modules, well, take a lesson from
Microsoft - all the framework libraries are single modules.

Richard
--
www.richardgrimes.com
my email ev******@zicf.bet is encrypted with ROT13 (www.rot13.org)
Jul 21 '05 #3
As to an assembly made up of multiple modules, well, take a lesson from
Microsoft - all the framework libraries are single modules.


Except System.EnterpriseServices

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #4
And what was the reason the splitted it up?

"Mattias Sjögren" <ma********************@mvps.org> schrieb im Newsbeitrag
news:O7**************@TK2MSFTNGP11.phx.gbl...
As to an assembly made up of multiple modules, well, take a lesson from
Microsoft - all the framework libraries are single modules.


Except System.EnterpriseServices

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Jul 21 '05 #5
And what was the reason the splitted it up?


I believe System.EnterpriseServices.dll is written in C# and
System.EnterpriseServices.Thunk.dll
(System.EnterpriseServices.Wrapper.dll in Whidbey) is implemented in
C++. So the reason is more or less what Mona wrote.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #6
Mattias Sjögren wrote:
As to an assembly made up of multiple modules, well, take a lesson
from Microsoft - all the framework libraries are single modules.


Except System.EnterpriseServices


There's always one black sheep in the family ;-)

The extra module is the thunk layer used to squeeze COM+ into .NET, so I
regard it as an exception. Of course, if the OP intends to do something
similar then a multi-module file is a good solution, but I reckon not many
developers are likely to have a problem like that. :-)

Richard
--
www.richardgrimes.com
my email ev******@zicf.bet is encrypted with ROT13 (www.rot13.org)
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Joel Leong | last post by:
I wish to know the industrial practices for signing assemblies with key files. I genereted a key file to sign my assemblies. Should I sign all my assemblies with a single key files or I shall...
2
by: msnews.microsoft.com | last post by:
How can we access an internal class in a referenced file in a multi-file assembly. All documentation states the obvious purpose of the internal keyword on a class, but when referencing an...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
1
by: Bob Rock | last post by:
Hello, I was wondering when multi-file assemblies may be useful. With multi-file assemblies you may place inside the same assembly netmodules coded in different languages and as a consequence...
3
by: jlea | last post by:
I'm receiving the error message shown below when I try to load an aspx file (C# web application) on our server. The web application works fine if I remove the reference to the dll so I know the...
2
by: Bernd | last post by:
I'm stumped. I would like to create a single file executable for a vb project that also calls a c# project
6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
0
by: Tuncay Baskan | last post by:
http://groups.google.com/group/microsoft.public.dotnet.general/browse_frm/thread/ec39c22f6b90c1ee/6037d3498eef290d It is quite amazing that 3 long years passed but Visual Studio 2005 Intellisense...
2
by: Rod | last post by:
I've been struggling with this thing for 2 days, and after searching the 'net for help, I cannot find what is wrong. We're using Crystal Reports XI Release 2, with Visual Studio .NET 2003 in...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.