Symptom

Error CS0234: The type or namespace name ‘xxxxx’ does not exist in the namespace ‘XXX’ (are you missing an assembly reference?) (TFS 2015 Update 2 MSBuild step)

Root Cause

The referenced DLLs might be Auto-refreshed to other folders which do not exist on the build (temp) folder.

Solution

Carefully setup auto-refresh folder for referenced DLLs. In my case, I used publishprj file to build an old Website (not Web App) and the referenced DLLs are outside of the scope.

Advertisements