Let’s say I have a Project A in my solution. Project A has two dll’s, Office.dll and Microsoft.Office.Interop.Excel.dll.
I have another project in my solution which is Project B. Project B has a reference to Project A. So if we are going to check the references of Project B, it has ProjectA.dll on it.
I have seen a solution like this. If Project B is to be published (release mode) and we check its bin folder, it will also have Office.dll and Microsoft.Office.Interop.Excel.dll even though these are not declared in its csproj. I am assuming that since Project B has a reference to Project A, it will also copy Project A’s dll’s.
Is this scenario can truly happen? Because I am trying to do this but im not successful on replicating it.
You can set your
CopyLocal on trueDetermines whether the reference is copied to the local bin path.
Link : http://msdn.microsoft.com/en-us/library/aa984582(v=vs.71).aspx