Solved

How are these DLLs referenced???

Posted on 2008-06-18
4
254 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

627 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