ccrewrite fails on the build machine due to nuget references having contract assemblies
问题 Here is the whole context: I build two nuget packages containing A.nupkg: A.dll, A.Contracts.dll B.nupkg: B.dll, B.Contracts.dll; B depends on A I create a new project and solution C depending on A and B, and set "Contract Reference Assembly" to Build. Locally, everything compiles just fine. However, on the build server (MSBuild 2012.2), an exception is thrown from ccrewrite, saying ccrewrite : error : Rewrite aborted due to metadata errors. Check output window . Setting the logging to