Properties\\AssemblyInfo.cs(41,12): error CS0246: The type or namespace name \'Assembly
I worked it out in the end. I had a NuGet versioning package in TFS which was checking out the AssemblyInfo class and re-adding the AssemblyFileVersion attribute. I turned this feature off as the attribute is not supported by the .NET CF.
Please try this: Put all those libraries on your build machine. Use NuGet to manage the packages and configure it to pull down the libraries that are missing. You may either want to add them manually.