title: Copy Data Source From Between Visual Studio Projects
body: <p>I'm trying to copy a Data Source between two Visual Studio VB.NET projects.  I have determined that, if I copy these files from the source project to the destination project:</p>
  <ol>
  <li>ClassDiagram1.cd</li>
  <li>DataSet1.Designer.vb</li>
  <li>DataSet1.vb</li>
  <li>DataSet1.xsc</li>
  <li>DataSet1.xsd</li>
  <li>DataSet1.xss</li>
  </ol>
  <p>Then copy all of the entries like below from the source .vbproj into the <em>correct places</em> in the destination .vbproj file (using a text editor, not VS):</p>
  <pre><code>&lt;Compile Include=&quot;DataSet1.Designer.vb&quot;&gt;
    &lt;AutoGen&gt;True&lt;/AutoGen&gt;
    &lt;DesignTime&gt;True&lt;/DesignTime&gt;
    &lt;DependentUpon&gt;DataSet1.xsd&lt;/DependentUpon&gt;
  &lt;/Compile&gt;
  &lt;Compile Include=&quot;DataSet1.vb&quot;&gt;
    &lt;DependentUpon&gt;DataSet1.xsd&lt;/DependentUpon&gt;
  &lt;/Compile&gt;
  
  &lt;None Include=&quot;DataSet1.xsc&quot;&gt;
    &lt;DependentUpon&gt;DataSet1.xsd&lt;/DependentUpon&gt;
  &lt;/None&gt;
  &lt;None Include=&quot;DataSet1.xsd&quot;&gt;
    &lt;SubType&gt;Designer&lt;/SubType&gt;
    &lt;Generator&gt;MSDataSetGenerator&lt;/Generator&gt;
    &lt;LastGenOutput&gt;DataSet1.Designer.vb&lt;/LastGenOutput&gt;
  &lt;/None&gt;
  &lt;None Include=&quot;DataSet1.xss&quot;&gt;
    &lt;DependentUpon&gt;DataSet1.xsd&lt;/DependentUpon&gt;
  &lt;/None&gt;
  </code></pre>
  <p>The data source will magically appear when the destination project is next opened in VS.  My question is: Isn't there an easier way to do this?!?!?!  You'd think you'd be able to import the .xsd file or something, but that doesn't seem to be an option.</p>