Reputation: 4625
After adding Fakes framework to the test project after each check in I get the following error:
Error 33 The last access/last write time on file "XYZ.1.5.5.0.Fakes.dll" cannot be set. Access to the path 'XYZ.1.5.5.0.Fakes.dll' is denied. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Fakes\Microsoft.QualityTools.Testing.Fakes.targets 137 5 ABCProjectName
Error 34 The last access/last write time on file "XYZ.1.5.5.0.Fakes.fakesconfig" cannot be set. Access to the path 'XYZ.1.5.5.0.Fakes.fakesconfig' is denied. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Fakes\Microsoft.QualityTools.Testing.Fakes.targets 137 5 ABCProjectName
Also after I check in VS marks both of the files mentioned above as read-only. After this happens, building the project on the local machine fails with exactly the same errors.
Upvotes: 0
Views: 2215
Reputation: 5374
You should generally not check-in fakes dlls into tfs. Let fakes create them during build. If you're worried about the performance hit of creating fakes dlls during build time which is a valid concern, then you should read and do what's suggested in Optimizing build times.
Upvotes: 3