views:

104

answers:

1

A similar question was asked here without any answers. I have a cs project with a reference to MySql.Data.Dll with CopyLocal=true. When I run the msbuild from command line on one computer (Windows 7 64 bit), it works perfectly.

When I run the same MsBuild on another computer (Windows Server 2008 RC2), the DLL is not copied to the output directory. Other copy-local DLLs are copied without a problem, and no error is printed. I do have permissions to access the DLL, and copying it manually works.

Does anyone know why this happens / how to circumvent?

A: 

It may not be relevant, but I saw a similar problem to this when I moved a dll out to be handled by a project reference. It'd build fine locally, but wouldn't copy the dll over on the TFS machine. Turns out I had to remove the original reference to the dll itself in the csproj so it knew to copy it over via the project reference.

I can't remember much more about the problem though so it's not much of an answer.

Damien Ryan