MS Sync Framework and SQL Server Compact
<p>I develop a Windows C# application which can work in Online and Offline mode.<br>
When in Online mode it connects to a SQL Server. In Offline mode it connects to a local DB.</p>

<p>I use the Microsoft Sync Framework 2.1 to sync the 2 databases on demand.</p>

<p>Until now I used a LocalDB instance of SQL Server as the local database. But it is a pain to setup the system automatically during the installation process of my application. So I tought to use SQL Server Compact 3.5 or 4.0 which is very easy to distribute (comes in a single file).</p>

<p>But I cannot get it to even compile the provisioning code of the Compact DB:</p>

<pre><code>DbSyncScopeDescription scopeDesc = new DbSyncScopeDescription("MyScope");
SqlCeConnection clientConn = new SqlCeConnection(OfflineConnectionString);
var clientProvision = new SqlCeSyncScopeProvisioning(clientConn, scopeDesc);
clientProvision.Apply();
</code></pre>

<p>which I used before (without the <code>Ce</code> classes) but <code>SqlCeSyncScopeProvisioning</code> cannot be resolved. </p>

<p>Something is terribly wrong here.<br>
How can I sync my CompactDB to distribute this as my local database?</p>