Microsoft.Win32.ShimRegistryKey not working on build machine
问题 I Have lots of unit tests where I shim the Microsoft.Win32.RegistryKey using Microsoft Fakes. When I run the build on my local machine the unit test passed. But if I run it on build machine the unit test fails with the following error for these tests. System.TypeLoadException: Could not load type 'Microsoft.Win32.Fakes.ShimRegistryKey' from assembly 'mscorlib.4.0.0.0.Fakes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0ae41878053f6703'. The curious thing is that both my local machine and