Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How are these DLLs referenced???

Posted on 2008-06-18
4
247 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
ID: 21817226
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
ID: 21818104
also them could be declared as dependencies.
0
 
LVL 5

Expert Comment

by:JuckMan
ID: 21818302
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
ID: 21869167
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why does my excel data start at B1 instead of A1. 9 91
Graphics 2 32
Problem!!! 8 37
What Does This C# Code Block Do? 5 55
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…

839 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