Search code examples
visual-studio-2015tfstfsbuildcoded-ui-teststfs-2015

TFS Build error on Coded UI Test


I have a newly created coded UI test project that I checked into TFS. When it tries to build it fails and I have these two errors:

The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)

and

The type or namespace name 'Extension' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITest' (are you missing an assembly reference?)

I have followed some of the other advice I've seen to no avail. I've created a folder in the project and copied the UI test assemblies there and changed the reference, I set Copy Local to true, and I verified that these new assemblies were checked in and on the server... but I still am getting the same exact errors.

I'm out of ideas, thoughts?

UPDATE I received remote access to the server; I opened a copy of VS 2015 and compiled, ran into the same errors. It is missing references to the coded ui dlls, so I re-added and compiled successfully. I then saved the project but as soon as someone checks in new code to TFS, the references are gone again.

So now I don't understand why the references are there in my local environment, but are removed when checked in. What am I missing here?


Solution

  • Ok I finally discovered that for some reason the reference paths were pointing to an incorrect drive on TFS. I have no idea why but once I changed the drive, it compiles and builds successfully.