Wednesday, July 14, 2010

Problems with Copy Local

We were having a problem where a Webparts project was failing to build a wsp files, due to a missing assembly reference. Although the setting in the VS project was Copy Local for the required assembly, it was not ending up in the target dir.

Closing VS, clearing the source, re-syncing with TFS made no difference.

Solution was to set Copy Local to false. Save and compile – fails as expected. Set Copy Local to true. Save and compile – fixed….