473,387 Members | 3,821 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,387 software developers and data experts.

Trying to emulate System assemblies...

I'm trying to figure out how Microsoft were able to setup the
namespace/assemblies in such a way that the corresponding Class Library
DLL's seem to be aware of the other Parent/child DLL relationship?

i.e. System (is a System.DLL), System.Data (is System.Data.DLL), etc. etc.

when I try to create my own such structure I can't seem to get it to work.

I create an assembly (new project based on class library) say call
"MyCompany", build solution to a DLL called MyCompany.DLL. The root
namespace for is MyCompany.

I create a 2nd assembly (new project based on class library) say it is
called "Accounting", build the solution to a DLL called Accounting.DLL. I
set the root namespace to MyCompany.

However if I create a 3rd assembly (new project based on WindowsForms) and
add reference "MyCompany" and "Accounting" they do not tier when I use
IMPORTS MyCompany -- I was hoping to see IMPORTS MyCompany.Accounting --
but no such luck.

Should I be using a Single solution with multiple projects? I'm trying to
optimize my DLL usage.

Thanks, Rob.
Nov 21 '05 #1
1 982
Ok, never mind, I answered my own question --

1. Just keep adding projects to my single solution
2. Use <parentnamespace>.<childnamespace>

works like a charm

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
I'm trying to figure out how Microsoft were able to setup the
namespace/assemblies in such a way that the corresponding Class Library
DLL's seem to be aware of the other Parent/child DLL relationship?

i.e. System (is a System.DLL), System.Data (is System.Data.DLL), etc.
etc.

when I try to create my own such structure I can't seem to get it to work.

I create an assembly (new project based on class library) say call
"MyCompany", build solution to a DLL called MyCompany.DLL. The root
namespace for is MyCompany.

I create a 2nd assembly (new project based on class library) say it is
called "Accounting", build the solution to a DLL called Accounting.DLL. I
set the root namespace to MyCompany.

However if I create a 3rd assembly (new project based on WindowsForms) and
add reference "MyCompany" and "Accounting" they do not tier when I use
IMPORTS MyCompany -- I was hoping to see IMPORTS MyCompany.Accounting --
but no such luck.

Should I be using a Single solution with multiple projects? I'm trying to
optimize my DLL usage.

Thanks, Rob.

Nov 21 '05 #2

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

Similar topics

61
by: /* frank */ | last post by:
I have to do a homework: make a CPU simulator using C language. I have a set of asm instructions so I have to write a program that should: - load .asm file - view .asm file - do a step by step...
2
by: Donald Sorenson | last post by:
Hey all, I'm trying to share a DLL that sits in the bin directory of a web application. from responses I got here I tried to change the output path (doesn't work) and I also tried to put it in...
2
by: Jason Kendall | last post by:
I've got a simple report that I'm building. This is just a single web page. It uses a custom DLL that I've built as an interface to my database. When I use th page within an ASP.Net project, in...
2
by: antonyliu2002 | last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP December package and installed on BOTH my development machine and the production server. Then I created a very very simple web...
2
by: Rahul | last post by:
I am trying the following thing in AJAX <atlas:ScriptManager ID="scriptmanager1" runat="Server" EnablePartialRendering="true" /> <asp:DropDownList ID="cmbBranchname" cssclass="Combostyle"...
11
by: Andrus | last post by:
I'm implementing entity object which should populate its properties from database when property is first referenced. In RDL reports I use object properties like MyObject.MyProperty MyObject...
0
by: Sin Jeong-hun | last post by:
The term 'system-wide' just means that click is dealt in whole-screen wide level. Just like the real mouse pointer. What I'd like to do is to emulate mouse move and click. For example, the...
3
by: Marco Shaw | last post by:
I've got some C# code to create a custom PowerShell cmdlet with these statements: .... using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; .... ...
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.