Trouble with Microsoft Fakes with TFS 2010

Posted on Posted in Uncategorized

I spent a bit of time recently setting up build and test automation for a new project I’ve started working on. All projects compiled and completed successfully on my local machine, but I ran into problems during the automated build.

Eventually, I ran into 2 different issues. The first issue had to do with the version of Visual Studio on the build agent. Microsoft Fakes requires VS 2012 Ultimate or 2012 Premium with update 2.

Once I changed the build agent, I still encountered a problem because the client is still running TFS 2010. TFS 2012 is required to run tests with fakes. This comes down to the fact that TFS 2010 uses MSTest…