CopyLocal=True or CopyLocal=False For File-Based Reference

Posts   
 
    
mkamoski avatar
mkamoski
User
Posts: 116
Joined: 06-Dec-2005
# Posted on: 03-May-2006 18:50:23   

All--

Please help.

I am wondering...

...suppose that one has a VS.NET 2003 project that uses a file-based reference pointing to a common location for shared references for the following...

C:\projects\Shared\References\SD.LLBLGen.Pro.DQE.SqlServer.NET11.dll

C:\projects\Shared\References\SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll

Should those have: (1) CopyLocal=True; or, (2) CopyLocal=False; or, (3) either T or F because it does not really matter either way?

What do you think?

Please advise.

Thank you.

--Mark Kamoski

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 04-May-2006 01:46:20   

Use CopyLocal if you will be moving this application to other computers, since they won't be guaranteed to have the files in that location. I would use True.

From MSDN http://msdn2.microsoft.com/en-us/library/ez524kew.aspx

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 04-May-2006 06:04:16   

You may want to stick with the VS.Net defaults, which set the CopyLocal value according to the following rules (in order):

1- If the reference is another project, called a project-to-project reference, then the value is true. 2- If the assembly is found in the global assembly cache, the value is false. 3- As a special case, the value for the mscorlib.dll reference is false. 4- If the assembly is found in the Framework SDK folder, then the value is false. 5- Otherwise, the value is true.