I can build my code locally and on another developer's machine, but cc.net fails to build the project when I check in the code.
I know that I experience a similar issue when I switch between .NET Framework 4 and .NET Framework 4 Client Profile on a console application. .NET Framework 4 is desired for Sharepoint integration, but I've checked the Project settings, and it appears configured to .NET Framework 4. So now I'm at a bit of a loss as to what step to take next.
Here is the line of code that cannot be resolved:
using Microsoft.SharePoint.Client;
Here is cc.net's output
Errors (1):
Repository.cs (15,17): error
CS0234: The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Warnings (4)
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.SharePoint.Client". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.SharePoint.Client.Runtime". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.