Unhandled exception (4.1.15.0, postsharp.4.0-x86.exe, CLR 4.0.30319.378758, release): PostSharp.Sdk.CodeModel.AssemblyLoadException

I have updated PostSharp from v 4.1.3-alphato v 4.1.15. There is no problem when I create my local box for developers, but when the queue in the gated assembly fails on the assembly server with the following error:

Unhandled exception (4.1.15.0, postsharp.4.0-x86.exe, CLR 4.0.30319.378758, Release): PostSharp.Sdk.CodeModel.AssemblyLoadException: could not find assembly 'mscorlib, version = 2.0.5.0, culture = neutral, PublicKeyToken = 7cec85d7bea7798e. [Public Key Distribution]

I upgraded to the same version from v 4.1.6-alphain another solution, and the build server could successfully build it.

Can someone help me understand why PostSharp is looking for mscorlib v 2.0.5.0when all the projects in the solution are focused on .NET v 4.5.1? How can I solve this problem?

+4
source share

All Articles