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

Compiling a Class Library project into multiple assemblies

Hi there,

I'm working on developing a large Class Library project that is slowly
becoming a shared "framework" library amongst multiple applications. As this
shared library grows, I need to start thinking about ways to split this
library up.

In observing the .net framework, I've noticed that each major branch of the
framework (eg. System.Net or System.Data) and even some of the minor branches
are split up into individual dlls. When an applications needs a piece of the
framework from System.Data, they simply import that namespace (eg. using
System.Data) and that automatically links in the managed dll for that
namespace.

Is there a simple way for me to do the same thing for my shared library? Is
there a flag somewhere, or perhaps a particular configuration file that I
need to modify in order instruct the compiler to automatically split up my
library into separate dlls as per the namespace hierarchy?

I've tried many web searches on this subject, but all attempts thus far have
produced little fruit. Any help would be greatly appreciated!!

Thanks in advance!

T
Nov 8 '06 #1
3 2718
Art
Add multiple projects to your solution. Each project will have a different
default namespace i.e. MyCompany.Framework.Data, MyCompany.Framework.Text

Each project will compile into its own assembly. You can set up the default
namespace and assembly name in the projects page of the project.

Hope that helps.
--
There are only 10 types of people in the world. Those that understand
binary and those who don't.
"Phaitour" wrote:
Hi there,

I'm working on developing a large Class Library project that is slowly
becoming a shared "framework" library amongst multiple applications. As this
shared library grows, I need to start thinking about ways to split this
library up.

In observing the .net framework, I've noticed that each major branch of the
framework (eg. System.Net or System.Data) and even some of the minor branches
are split up into individual dlls. When an applications needs a piece of the
framework from System.Data, they simply import that namespace (eg. using
System.Data) and that automatically links in the managed dll for that
namespace.

Is there a simple way for me to do the same thing for my shared library? Is
there a flag somewhere, or perhaps a particular configuration file that I
need to modify in order instruct the compiler to automatically split up my
library into separate dlls as per the namespace hierarchy?

I've tried many web searches on this subject, but all attempts thus far have
produced little fruit. Any help would be greatly appreciated!!

Thanks in advance!

T
Nov 8 '06 #2
Art
oops - last sentance of my prior post should have read "properties page of
the project"
--
There are only 10 types of people in the world. Those that understand
binary and those who don't.
"Art" wrote:
Add multiple projects to your solution. Each project will have a different
default namespace i.e. MyCompany.Framework.Data, MyCompany.Framework.Text

Each project will compile into its own assembly. You can set up the default
namespace and assembly name in the projects page of the project.

Hope that helps.
--
There are only 10 types of people in the world. Those that understand
binary and those who don't.
"Phaitour" wrote:
Hi there,

I'm working on developing a large Class Library project that is slowly
becoming a shared "framework" library amongst multiple applications. As this
shared library grows, I need to start thinking about ways to split this
library up.

In observing the .net framework, I've noticed that each major branch of the
framework (eg. System.Net or System.Data) and even some of the minor branches
are split up into individual dlls. When an applications needs a piece of the
framework from System.Data, they simply import that namespace (eg. using
System.Data) and that automatically links in the managed dll for that
namespace.

Is there a simple way for me to do the same thing for my shared library? Is
there a flag somewhere, or perhaps a particular configuration file that I
need to modify in order instruct the compiler to automatically split up my
library into separate dlls as per the namespace hierarchy?

I've tried many web searches on this subject, but all attempts thus far have
produced little fruit. Any help would be greatly appreciated!!

Thanks in advance!

T
Nov 8 '06 #3
So there is no way to have the compiler/vs2005 automatically split one
project into multiple assemblies (based on the hierarchy of the namespace)?

Thanks Art for your prompt reply!
"Art" wrote:
Add multiple projects to your solution. Each project will have a different
default namespace i.e. MyCompany.Framework.Data, MyCompany.Framework.Text

Each project will compile into its own assembly. You can set up the default
namespace and assembly name in the projects page of the project.

Hope that helps.
--
There are only 10 types of people in the world. Those that understand
binary and those who don't.
"Phaitour" wrote:
Hi there,

I'm working on developing a large Class Library project that is slowly
becoming a shared "framework" library amongst multiple applications. As this
shared library grows, I need to start thinking about ways to split this
library up.

In observing the .net framework, I've noticed that each major branch of the
framework (eg. System.Net or System.Data) and even some of the minor branches
are split up into individual dlls. When an applications needs a piece of the
framework from System.Data, they simply import that namespace (eg. using
System.Data) and that automatically links in the managed dll for that
namespace.

Is there a simple way for me to do the same thing for my shared library? Is
there a flag somewhere, or perhaps a particular configuration file that I
need to modify in order instruct the compiler to automatically split up my
library into separate dlls as per the namespace hierarchy?

I've tried many web searches on this subject, but all attempts thus far have
produced little fruit. Any help would be greatly appreciated!!

Thanks in advance!

T
Nov 9 '06 #4

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

Similar topics

1
by: RichGolebiowski | last post by:
I have a class library (clsTestLib) that was created in VB.Net that I would like to use in Access 2000. I created a typelib for the class using regasm.exe. I am able to refernce (add a reference)...
2
by: pieter.breed | last post by:
Hi All, The company I work for has traditionally used COM/ActiveX for the solutions that it provides. We are in the process of moving to .NET and a few applications have been written in VB.NET...
5
by: Edward Mitchell | last post by:
I am trying to include two class files into a web service project. The structure I have is a top level solution and project in a folder and below that, the web service project in it's own folder. ...
4
by: Brian Shannon | last post by:
I am playing around with class libraries trying to understand how they work. I created a class library, library.vb. I placed the library.dll into the bin directory and set my reference. If I...
6
by: tony | last post by:
Hello! I have several projects where each one build a library.(class library or window control library). Now I get some strange compile error when building the *.exe file and doesn't...
3
by: Rich | last post by:
I put together a simple test class libary (VB2005) with one class and one function that takes an integer argument and adds 10 the argument and returns that number. Then I created a simple VB2005...
1
by: LiveCycle | last post by:
Hi, I'm putting together a project that uses ASP.NET in VS2005. It uses a single master page that is responsible for most of the heavy lifting. About 90% of the 200 pages have the same...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
2
by: Reggie | last post by:
Hi and TIA! I have a class file located in my root directory with all me web pages. I call/use the class and it works fine. I have no imports statements aspx or codebehind. My question is why? ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.