started a new Plugins project from scratch and wanted to add a unit test project using Xrm test framework by following instructions from the link below
Added all code as described in documentation above…
Created fake assembly System and Microsoft.Xrm.Sdk
but I was getting errors after debugging my tests and errors were related to versioning conflicts
![Screen Shot 2016-01-29 at 19.17.52](https://365rack.com/wp-content/uploads/2016/01/Screen-Shot-2016-01-29-at-19.17.52-300x101.png)
Additional information: Could not load file or assembly 'Microsoft.QualityTools.Testing.Fakes, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
After spending sometime below are the steps I followed to fix the issue
- removed Microsoft.Xrm.Sdk (and related fakes to it)
- removed Microsoft.Xrm.Sdk.fakes from fakes folder
- Cleaned solution
- Added new Microsoft CRM Sdk 2015 assemblies by right clicking on References>Manage NuGet packages (if you already have packages installed then just go to package and remove references then it will let you reinstall)
- Once newly Microsoft.Xrm.Sdk is added under references, right clicked on it and created fake assembly