title: Compile multiple dotnet core projects in one step using dotnet cli
body: <p>Assuming this folder structure</p>
  
  <pre><code>SampleApp
          global.json
          Src  
              Web             
                  project.json
                  Startup.cs
                  ...
              Model
                  project.json
                  Startup.cs
                  ...
  </code></pre>
  
  <p>how does one compile both projects using <code>dotnet</code>? (from command line, not in visual studio)</p>
  
  <p>If you run <code>dotnet build</code> at the root folder level you get</p>
  
  <blockquote>
    <p>Could not find file .. project.json</p>
  </blockquote>
  
  <p>I can see there is <a href="https://github.com/dotnet/cli/issues/1302" rel="noreferrer">this outstanding enhancement</a> on the CLI repo but that is from Feb2. </p>
  
  <p>Any script would have to take dependencies into account before just blindly calling <code>dotnet</code> on all <code>src</code> sub-folders. </p>