In one of our projects Visual Studio 2012's option "Add Fakes Assembly" does not add all needed references to the generated f.csproj file.
This is causing an error.
Error 1 The type '<typename>' is defined in an assembly that is not referenced. You must add a reference to assembly '<ReferencedAssembly>, Version=188.8.131.52, Culture=neutral, PublicKeyToken=6740fce60587153a'. [C:\Projects\TFS\<TestProject>\obj\Release\Fakes\dfzab\f.csproj] C:\Projects\TFS\<TestProject>\f.cs 31599 26 <ProjectName>
The Assembly I'm generating the fake for does have a reference to correct assembly.
After examing the f.csproj file i noticed the reference to the assembly was not there.
I managed to reproduce this issue in a Demo Project. I added the project to this feedbackitem.