sourcedir\codefile.cs (297): ‘namespace’ does not contain a definition for ‘X’ and no extension method ‘Y’ accepting a first argument of type ‘Z’ could be found
(are you missing a using directive or an assembly reference?)
If so, this has to do with the MSBUILD Target Engine , it’s not well documented at first and you get the impression that it is a permissions issue or related.
What you need to do to resolve this is, open the build definition, navigate to the process tab and change the MSBuild Platform to the X86 version. this occurs most of the time when assemblies are not able to compile toward x64 architecture.