PC Review


Reply
Thread Tools Rate Thread

assemblies & references

 
 
A-PK
Guest
Posts: n/a
 
      9th Feb 2004
Anyone know how to breakdown every modules into different assemblies

and refernces. Hence, to repair problematic module, only that

particular module needed to be recompiled.


or any place can get more information about assemblies & references


 
Reply With Quote
 
 
 
 
Brian Henry
Guest
Posts: n/a
 
      9th Feb 2004
just code it that way?! im kinda missing what you're not getting.. just code
all the modules as seperate projects and refrence them all together... it's
not that hard


" A-PK" <(E-Mail Removed)> wrote in message
news:uQoVr%(E-Mail Removed)...
> Anyone know how to breakdown every modules into different assemblies
>
> and refernces. Hence, to repair problematic module, only that
>
> particular module needed to be recompiled.
>
>
> or any place can get more information about assemblies & references
>
>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      9th Feb 2004
If you want to take this approach, you'll need to create each module in its
own solution, which will compile it to its own assembly. For example, one
solution could be the module that describes data classes and another could
describe business classes.

Search MSDN.Microsoft.com, keyword "assemblies" for more.


" A-PK" <(E-Mail Removed)> wrote in message
news:uQoVr%(E-Mail Removed)...
> Anyone know how to breakdown every modules into different assemblies
>
> and refernces. Hence, to repair problematic module, only that
>
> particular module needed to be recompiled.
>
>
> or any place can get more information about assemblies & references
>
>



 
Reply With Quote
 
A-PK
Guest
Posts: n/a
 
      9th Feb 2004
how to compile them and make those project readable and can reference them ?

"Scott M." <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you want to take this approach, you'll need to create each module in

its
> own solution, which will compile it to its own assembly. For example, one
> solution could be the module that describes data classes and another could
> describe business classes.
>
> Search MSDN.Microsoft.com, keyword "assemblies" for more.
>
>
> " A-PK" <(E-Mail Removed)> wrote in message
> news:uQoVr%(E-Mail Removed)...
> > Anyone know how to breakdown every modules into different assemblies
> >
> > and refernces. Hence, to repair problematic module, only that
> >
> > particular module needed to be recompiled.
> >
> >
> > or any place can get more information about assemblies & references
> >
> >

>
>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      9th Feb 2004
Compile them just as you would any assembly. Reference them as you would
any assembly. Once they are referenced, you can instantiate the classes in
the modules.

Are you saying you don't know how to compile and make references? If so,
that is a completely different issue. If you are using VS.NET, "build" your
assembly (compile) from the Build menu. If not using VS.NET, use the
command line compilers.


" A-PK" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> how to compile them and make those project readable and can reference them

?
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > If you want to take this approach, you'll need to create each module in

> its
> > own solution, which will compile it to its own assembly. For example,

one
> > solution could be the module that describes data classes and another

could
> > describe business classes.
> >
> > Search MSDN.Microsoft.com, keyword "assemblies" for more.
> >
> >
> > " A-PK" <(E-Mail Removed)> wrote in message
> > news:uQoVr%(E-Mail Removed)...
> > > Anyone know how to breakdown every modules into different assemblies
> > >
> > > and refernces. Hence, to repair problematic module, only that
> > >
> > > particular module needed to be recompiled.
> > >
> > >
> > > or any place can get more information about assemblies & references
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
A-PK
Guest
Posts: n/a
 
      9th Feb 2004
so sorry.....
I right click the "references" under the solution explorer and choose Add
References.

then pop up one screen with Three Tab there
..NET \ COM \ Projects

i wonder which to choose ? I choose Project then anotehr screen poping up
i browse to the destination path and choose xxx.exe but can not add the
references.

this is where I stuck.

1- i dun know if my file compile correctly - acoording to scott, i did
compile them correcntly.
2- i dun know if my destination path is correct, but i have try every files
on that folder, but all can not

Is it only DLL or COM file can be references ?
I create a new project and try to compile and make it a reference ...can or
can not ?

"Scott M." <s-(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Compile them just as you would any assembly. Reference them as you would
> any assembly. Once they are referenced, you can instantiate the classes

in
> the modules.
>
> Are you saying you don't know how to compile and make references? If so,
> that is a completely different issue. If you are using VS.NET, "build"

your
> assembly (compile) from the Build menu. If not using VS.NET, use the
> command line compilers.
>
>
> " A-PK" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > how to compile them and make those project readable and can reference

them
> ?
> >
> > "Scott M." <s-(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > If you want to take this approach, you'll need to create each module

in
> > its
> > > own solution, which will compile it to its own assembly. For example,

> one
> > > solution could be the module that describes data classes and another

> could
> > > describe business classes.
> > >
> > > Search MSDN.Microsoft.com, keyword "assemblies" for more.
> > >
> > >
> > > " A-PK" <(E-Mail Removed)> wrote in message
> > > news:uQoVr%(E-Mail Removed)...
> > > > Anyone know how to breakdown every modules into different assemblies
> > > >
> > > > and refernces. Hence, to repair problematic module, only that
> > > >
> > > > particular module needed to be recompiled.
> > > >
> > > >
> > > > or any place can get more information about assemblies & references
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      9th Feb 2004

" A-PK" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> so sorry.....
> I right click the "references" under the solution explorer and choose Add
> References.
>
> then pop up one screen with Three Tab there
> .NET \ COM \ Projects
>
> i wonder which to choose ? I choose Project then anotehr screen poping up
> i browse to the destination path and choose xxx.exe but can not add the
> references.


You want to make a reference to a .NET Assembly, right? Then choose .NET
and hit browse. Browse to the .NET assembly in question and hit select.
Then click OK. It's really very simple.


>
> this is where I stuck.
>
> 1- i dun know if my file compile correctly - acoording to scott, i did
> compile them correcntly.
> 2- i dun know if my destination path is correct, but i have try every

files
> on that folder, but all can not
>
> Is it only DLL or COM file can be references ?
> I create a new project and try to compile and make it a reference ...can

or
> can not ?
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > Compile them just as you would any assembly. Reference them as you

would
> > any assembly. Once they are referenced, you can instantiate the classes

> in
> > the modules.
> >
> > Are you saying you don't know how to compile and make references? If

so,
> > that is a completely different issue. If you are using VS.NET, "build"

> your
> > assembly (compile) from the Build menu. If not using VS.NET, use the
> > command line compilers.
> >
> >
> > " A-PK" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > how to compile them and make those project readable and can reference

> them
> > ?
> > >
> > > "Scott M." <s-(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > If you want to take this approach, you'll need to create each module

> in
> > > its
> > > > own solution, which will compile it to its own assembly. For

example,
> > one
> > > > solution could be the module that describes data classes and another

> > could
> > > > describe business classes.
> > > >
> > > > Search MSDN.Microsoft.com, keyword "assemblies" for more.
> > > >
> > > >
> > > > " A-PK" <(E-Mail Removed)> wrote in message
> > > > news:uQoVr%(E-Mail Removed)...
> > > > > Anyone know how to breakdown every modules into different

assemblies
> > > > >
> > > > > and refernces. Hence, to repair problematic module, only that
> > > > >
> > > > > particular module needed to be recompiled.
> > > > >
> > > > >
> > > > > or any place can get more information about assemblies &

references
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
A-PK
Guest
Posts: n/a
 
      10th Feb 2004
ok..should i compile my project to .dll file then make references to my
project ?

i have compile my file to dll, and able to make references, i wonder if i
dun compile to dll (class), could I still make reference to my project ?

i am confused about dll now...i though dot net already face off dll.....but
how come i still need to compile dll in order to make references ?...pls
guide me....i am not clear in this issue


"Scott M." <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> " A-PK" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > so sorry.....
> > I right click the "references" under the solution explorer and choose

Add
> > References.
> >
> > then pop up one screen with Three Tab there
> > .NET \ COM \ Projects
> >
> > i wonder which to choose ? I choose Project then anotehr screen poping

up
> > i browse to the destination path and choose xxx.exe but can not add the
> > references.

>
> You want to make a reference to a .NET Assembly, right? Then choose .NET
> and hit browse. Browse to the .NET assembly in question and hit select.
> Then click OK. It's really very simple.
>
>
> >
> > this is where I stuck.
> >
> > 1- i dun know if my file compile correctly - acoording to scott, i did
> > compile them correcntly.
> > 2- i dun know if my destination path is correct, but i have try every

> files
> > on that folder, but all can not
> >
> > Is it only DLL or COM file can be references ?
> > I create a new project and try to compile and make it a reference ...can

> or
> > can not ?
> >
> > "Scott M." <s-(E-Mail Removed)> wrote in message
> > news:#(E-Mail Removed)...
> > > Compile them just as you would any assembly. Reference them as you

> would
> > > any assembly. Once they are referenced, you can instantiate the

classes
> > in
> > > the modules.
> > >
> > > Are you saying you don't know how to compile and make references? If

> so,
> > > that is a completely different issue. If you are using VS.NET,

"build"
> > your
> > > assembly (compile) from the Build menu. If not using VS.NET, use the
> > > command line compilers.
> > >
> > >
> > > " A-PK" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > how to compile them and make those project readable and can

reference
> > them
> > > ?
> > > >
> > > > "Scott M." <s-(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > If you want to take this approach, you'll need to create each

module
> > in
> > > > its
> > > > > own solution, which will compile it to its own assembly. For

> example,
> > > one
> > > > > solution could be the module that describes data classes and

another
> > > could
> > > > > describe business classes.
> > > > >
> > > > > Search MSDN.Microsoft.com, keyword "assemblies" for more.
> > > > >
> > > > >
> > > > > " A-PK" <(E-Mail Removed)> wrote in message
> > > > > news:uQoVr%(E-Mail Removed)...
> > > > > > Anyone know how to breakdown every modules into different

> assemblies
> > > > > >
> > > > > > and refernces. Hence, to repair problematic module, only that
> > > > > >
> > > > > > particular module needed to be recompiled.
> > > > > >
> > > > > >
> > > > > > or any place can get more information about assemblies &

> references
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      10th Feb 2004

" A-PK" <(E-Mail Removed)> wrote in message
news:edl%(E-Mail Removed)...
> ok..should i compile my project to .dll file then make references to my
> project ?


Whatever .dll you want to reference should already be compiled into its
final form (.dll or .exe) before you reference it. The project that needs
to use the referenced .dll need not be compiled to make the reference, but
certainly needs to be compiled in order for its code to run (and therefore
use the referenced assembly).

> i have compile my file to dll, and able to make references, i wonder if i
> dun compile to dll (class), could I still make reference to my project ?


See above.

> i am confused about dll now...i though dot net already face off

dll.....but
> how come i still need to compile dll in order to make references ?...pls
> guide me....i am not clear in this issue


As I stated, you need to have whatever you want to reference already
compiled, because the compiled assembly is what you make a reference to.
The project that is making the reference needs to be compiled to run, but
not to make a reference. An example of this is that a brand new project in
VS.NET will already have references to commonly used .NET assemblies
(system.dll, mscoree.dll, etc.) before you even begin.

I really would suggest an msdn.microsoft.com search on "Assemblies",
"Namespaces" and "references" as these are all basic tenants of .NET
programming.


> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > " A-PK" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > so sorry.....
> > > I right click the "references" under the solution explorer and choose

> Add
> > > References.
> > >
> > > then pop up one screen with Three Tab there
> > > .NET \ COM \ Projects
> > >
> > > i wonder which to choose ? I choose Project then anotehr screen poping

> up
> > > i browse to the destination path and choose xxx.exe but can not add

the
> > > references.

> >
> > You want to make a reference to a .NET Assembly, right? Then choose

..NET
> > and hit browse. Browse to the .NET assembly in question and hit select.
> > Then click OK. It's really very simple.
> >
> >
> > >
> > > this is where I stuck.
> > >
> > > 1- i dun know if my file compile correctly - acoording to scott, i did
> > > compile them correcntly.
> > > 2- i dun know if my destination path is correct, but i have try every

> > files
> > > on that folder, but all can not
> > >
> > > Is it only DLL or COM file can be references ?
> > > I create a new project and try to compile and make it a reference

....can
> > or
> > > can not ?
> > >
> > > "Scott M." <s-(E-Mail Removed)> wrote in message
> > > news:#(E-Mail Removed)...
> > > > Compile them just as you would any assembly. Reference them as you

> > would
> > > > any assembly. Once they are referenced, you can instantiate the

> classes
> > > in
> > > > the modules.
> > > >
> > > > Are you saying you don't know how to compile and make references?

If
> > so,
> > > > that is a completely different issue. If you are using VS.NET,

> "build"
> > > your
> > > > assembly (compile) from the Build menu. If not using VS.NET, use

the
> > > > command line compilers.
> > > >
> > > >
> > > > " A-PK" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > how to compile them and make those project readable and can

> reference
> > > them
> > > > ?
> > > > >
> > > > > "Scott M." <s-(E-Mail Removed)> wrote in message
> > > > > news:(E-Mail Removed)...
> > > > > > If you want to take this approach, you'll need to create each

> module
> > > in
> > > > > its
> > > > > > own solution, which will compile it to its own assembly. For

> > example,
> > > > one
> > > > > > solution could be the module that describes data classes and

> another
> > > > could
> > > > > > describe business classes.
> > > > > >
> > > > > > Search MSDN.Microsoft.com, keyword "assemblies" for more.
> > > > > >
> > > > > >
> > > > > > " A-PK" <(E-Mail Removed)> wrote in message
> > > > > > news:uQoVr%(E-Mail Removed)...
> > > > > > > Anyone know how to breakdown every modules into different

> > assemblies
> > > > > > >
> > > > > > > and refernces. Hence, to repair problematic module, only that
> > > > > > >
> > > > > > > particular module needed to be recompiled.
> > > > > > >
> > > > > > >
> > > > > > > or any place can get more information about assemblies &

> > references
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Peter Bromley
Guest
Posts: n/a
 
      10th Feb 2004
I have a concern which follows on from this discussion.

I am building a .NET application made up of multiple assemblies
(projects) in a single solution. The projects are decoupled as much as
possible so that only a few interfaces are exposed between projects.

But....

Whenever I touch any code in a more fundamental project (say, Storage),
ALL files are recompiled in ALL projects that reference this changed
project.

This is unacceptable! At the moment the compile times are not large as
the project is still at POC stage but I expect the code space to
increase at least 100 to 1000 fold.

Am I missing something, or is this deliberate? Surely VS can determine
whether any exposed types have been changed rather than taking what
appears to be the most pessimistic approach.

Any information would be very much appreciated.

>
>
> Whatever .dll you want to reference should already be compiled into its
> final form (.dll or .exe) before you reference it. The project that needs
> to use the referenced .dll need not be compiled to make the reference, but
> certainly needs to be compiled in order for its code to run (and therefore
> use the referenced assembly).
>
>
>>i have compile my file to dll, and able to make references, i wonder if i
>>dun compile to dll (class), could I still make reference to my project ?

>
>
> As I stated, you need to have whatever you want to reference already
> compiled, because the compiled assembly is what you make a reference to.
> The project that is making the reference needs to be compiled to run, but
> not to make a reference. An example of this is that a brand new project in
> VS.NET will already have references to commonly used .NET assemblies
> (system.dll, mscoree.dll, etc.) before you even begin.
>


---

If you whish to reply to me directly, my addres is spam proofed as:

pbromley at adi dot co dot nz

Or if you prefer - (E-Mail Removed) :-)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
References to other assemblies Tony Johansson Microsoft C# .NET 2 28th Aug 2008 02:40 PM
external references in assemblies? wASP Microsoft C# .NET 2 17th Sep 2005 08:43 PM
Maintaining references in late bound assemblies Andy Franks Microsoft VB .NET 0 13th Feb 2004 08:50 PM
assemblies & references A-PK Microsoft VB .NET 8 10th Feb 2004 05:52 AM
Assemblies and circular dependency references. David Sandor Microsoft Dot NET 0 26th Sep 2003 07:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:10 PM.