views:

133

answers:

2

I have a msbuild task that builds my solution and I am migrating it from .net 3.5 to 4.0. I have some dependent DLLs that have Local Copy set to true. The 4.0 version of msbuild is not only copying the dependent DLL (which I want), it is also copying all dependent assemblies of that DLL from the 32 bit version of the GAC to my bin. Not only do I not want these files being copied from the GAC, I especially do not want the 32 bit versions for this 64 bit build.

Has the behavior changed in msbuild 4.0? And does anyone know how to force msbuild to use the behavior in 3.5?

A: 

Did you ever figure out how to make this work? I'm having the same issues.

Robert Kottelenberg
no. I had to add a step to my build that deleted them. There's got to be a cleaner way but that was the quickest solution that allowed me to move on.
Matt Wrock
A: 

Have you ensured that the Copy Local setting is false on those items you don't want copied? If so have you tried tried Setting False on the assemblies you don't want copied locally?

    <Reference Include="System.Core">
      <Private>False</Private>
    </Reference>
aolszowka