Solved

How are these DLLs referenced???

Posted on 2008-06-18
4
244 Views
Last Modified: 2012-05-05
I have inherrited a .NET solution and am trying to figure out how certain DLLs are making it into the bin directory when compiled even though they are not referenced.

Can anyone help me learn how this is happening? I need to include a new dll in the same manner as these are being included.

Thank you!
0
Comment
Question by:HangTenDesign
4 Comments
 
LVL 11

Expert Comment

by:William
Comment Utility
If you have an assembly that references 'another' asssembly it will be pulled in... You can also set them to be copied local:true|false
0
 
LVL 55

Expert Comment

by:Jaime Olivares
Comment Utility
also them could be declared as dependencies.
0
 
LVL 5

Expert Comment

by:JuckMan
Comment Utility
If you are using VS the right click on references folder and select "Add references". This will add the selected assembly in to your project and that assembly will be copied in to your bin folder.

If you add reference to a assembly which is in the GAC then that assembly by default would not be copied to your bin folder. (called shared assembles). If is not in GAC (called private assemblies) then a copy will be made in to the bin folder. This architecture is to support XCOPY deployment.
0
 

Accepted Solution

by:
HangTenDesign earned 0 total points
Comment Utility
I found a setting under Project --> [Project] Properties in Visual Studio called Build Events. The assemblies that are being pulled in are defined in the "Post Build Events" area. Once I added the same command line there, the DLLs got copied to the other Projects bin directory without the referrence. This is how the others were set up as well.

Thanks all for your input but I found this on my own.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# primary key 9 53
send mail from app.net 8 27
Object Oriented Best Practice 5 32
C# DataGridView_RowsAdded event not firing 1 36
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now