DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 16 Aug 2007 13:44:06 -0600,    posted on: microsoft.public.dotnet.framework        back       

Thread Index
  1    Siegfried Heintze
          2    Mattias Sjgren


Why so many copies of .NET DLL?   
Why does .NET make so many copies of my DLLs? I inherited a large project 
and there are two pervasive DLLs that get used everywhere: PlcmObject.dll 
and PlcmUtil.dll

Why our build procedure copies them all over our build directory is a 
mystery to me. I did a dir /s c:\ and found 170 copies (I assume that is 85 
copies each) of these two DLLs. Can anyone guess why our build procedure 
would make so many copies? I thought the whole point of using a DLL instead 
of an OLB (can you create OLBs for .NET project?) or including the source 
code again was to save disk space.

Now I assume our build procedure would not make copies of these DLLs in the 
two Microsoft directories below. Why does Microsoft (Visual Studio perhaps?) 
make so many copies? I guess NUnit is making copies too.

6 copies in the Application Data directory, for example:
c:/Documents and Settings/sheintze/Local Settings/Application 
Data/assembly/dl2/GGH8B4CG.6O1/3C1CCLC7.KVR/d27da362/4238e818_09dac701/PlcmUtility.dll

9 copies in the nunit directory, for example:
c:/Documents and Settings/sheintze/Local 
Settings/Temp/nunit20/ShadowCopyCache/633227782609218750/Tests/assembly/dl2/9f92218c/207c98d8_53dfc701/PlcmUtility.DLL

This is making life hell because periodically we have to find and delete 
these 170 copies to make the build work!
Thanks,
siegfried
Date:Thu, 16 Aug 2007 13:44:06 -0600   Author:  

Re: Why so many copies of .NET DLL?   

>Why does .NET make so many copies of my DLLs? I inherited a large project 
>and there are two pervasive DLLs that get used everywhere: PlcmObject.dll 
>and PlcmUtil.dll


If you have a reference to one of those assemblies with the CopyLocal
property set to true, it will be copied to the output directory when
you build. The obvious way to prevent that is to set CopyLocal to
false.


Mattias

-- 
Mattias Sjgren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Date:Thu, 16 Aug 2007 22:00:06 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us