I am trying to compile sample code for Sync Framework 4.0 for Windows Phone, however I found an error in several files. One of these files:
#if SERVER
namespace Microsoft.Synchronization.Services
#elif CLIENT
namespace Microsoft.Synchronization.ClientServices
#endif
{
public interface IOfflineEntity
{
OfflineEntityMetadata ServiceMetadata { get; set; }
}
}
There are two errors:
- A namespace cannot directly contain elements such as fields or methods - for the first bracket
- Determining the type or namespace or expected end of file - for the last parenthesis
I searched through google for both of these errors, and I found many answers for such errors - however, none of them can be applied to my case (afaik there are no missing brackets).
source
share