Solved

How are these DLLs referenced???

Posted on 2008-06-18
4
249 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

752 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