title: DomainContext class is not created in a RIA services class library solution
body: <p>I have created a RIA services class library project and things are not going as I expected. The problem is that when I add domain service classes to the server project, the corresponding domain context classes are not generated on the client project.</p>
  
  <p>I start by creating a new project of type <em>WCF RIA services class library</em>. The generated solution has two projects: <code>RIAServicesLibrary1</code> (the Silverlight class library project) and <code>RIAServicesLibrary1.Web</code> (the class library that will hold the services).</p>
  
  <p>Then I add a new project item to <code>RIAServicesLibrary1.Web</code> of type <em>DomainServiceClass</em>. I add a sample method so that the resulting class code is:</p>
  
  <pre><code>namespace RIAServicesLibrary1.Web
  {
      using System;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.ComponentModel.DataAnnotations;
      using System.Linq;
      using System.ServiceModel.DomainServices.Hosting;
      using System.ServiceModel.DomainServices.Server;
  
  
      // TODO: Create methods containing your application logic.
      [EnableClientAccess()]
      public class DomainService1 : DomainService
      {
          [Invoke]
          void DoSomething()
          {
          }
      }
  }
  </code></pre>
  
  <p>Then I generate the whole solution and... nothing happens on the client project. The <code>Generated_Code</code> folder is empty, and the domain context object for the service is not here.</p>
  
  <p>Funny enough, if I add a new item of type <em>Authentication domain service</em>, it works as expected: the file <code>RIAServicesLibrary1.Web.g.cs</code> is created on the client project, containing the <code>AuthenticationDomainService1</code> class as expected.</p>
  
  <p>So what's happening here? Am I doing something wrong?</p>
  
  <p><strong>Note</strong>: I am using Visual Studio 2010 Ultimate RTM and WCF RIA services 1.0.</p>