As a result of issue [workitem:9034], projects do not build in a clean environment (eg, continuous integration), if the .references directory is not present. This is usually populated in Visual Studio when resyncing the references.
To resolve this, we need to either:
- change the values in <HintPath> to point to the local repository directly
- have the MSBuild plugin copy the artifacts into .references from the local repository before building
There are reported to be issues with the first (See the above work item), with the possibility that environment variables might get 'baked in' to a .csproj file. This needs further investigation.