Search code examples
.netbuildgacassembly-resolution

Rules for when .NET referenced assembly is put in bin\debug


How does .NET (or Visual Studio) build decide whether or not to copy a referenced assembly to your bin/debug or bin/release directory? (This is an .exe console program.)

On my machine, I had the referenced assembly in the GAC. A co-worker copied my bin/release to their machine, and it wouldn't run because the referenced asssembly was not in the bin/release (and not on their GAC).

Thanks,

Neal Walters


Solution

  • If the assembly is not in GAC, then its copied. The CopyLocal attribute in properties window, tells if the assembly will be copied or not.