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.