I have a local c# project that I have also checked into source control. This project builds and runs fine.
When I clone the project from source control and open it fresh in visual studio, it won't build because it can't find any of the classes in the Microsoft.ServiceBus.dll. I get for example 'The type or namespace name 'QueueClient' could not be found (are you missing a using directive or an assembly reference?)'
The source control project contains the identical packages.config to the local one that builds, but is missing the dll in the /bin/Debug/ folder after a build.
One difference I do see is that the reference property for that dll (solution explorer -> myproject -> references -> Microsoft.ServiceBus) has the 'Copy Local' value set to false, whereas in the project that builds (the one I checked in) this is set to true. However changing it in the properties pane doesn't work. It immediately flips back when I click away. Is this the issue? If so where does this bit of config live on the filesystem? (or how can I change it such that it persists in that file)?
EDIT: A bit more info: The solution has two projects: WorkerRole and TestHarness. Both projects have a dependency on the service bus, but there is only a packages.config file in the WorkerRole project, and in the cloned solution, the WorkerRole builds fine! So what did I do to get the packages.config to appear for WorkerRole?? I guess I did something slightly different to get the TestHarness to build in the local project!!