I have been scouring the internet for an answer on this and could really use the help.
I've already looked at other posts regarding this error and none of those answers helped me.
The full error is,
The type 'xxx' is defined in an assembly that is not referenced. You must add a reference to assembly 'xxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
The solution builds fine locally, but the error occurs when I trigger a build on the build server.
Here's what I've done so far in an attempt to resolve this:
- Ensured all project references are correct(Had an Architect review it with me)
- Changed the 'SpecificVersion' property to true
- Removed the reference and added it back(In VS2012 and edited the .csproj file itself)
- Built solution locally on the build server, it passes
- EDIT - I should also mention I have built this solution on two different build servers and still get the same error
I'm using VS2012 and TFS2012 to do this.
I would really appreciate any help, thanks.
*UPDATE:*I just did an MSBuild on the build server but changed the configuration to "Release" and was able to reproduce parts of the error. Some key differences though is that the version it's looking for is suddenly 1.3.1.15 instead of 0.0.0.0 and the PublicKeyToken is no longer null. Does anyone know what this could mean? The assembly's version is supposed to be 0.0.0.0.