title: dotnet build project.csproj still searching directories
body: <p>I am trying to build a single project using dotnet build when there are other project files in the directory tree.</p>
  
  <p>According to the <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build?tabs=netcore2x" rel="nofollow noreferrer">documentation</a>,</p>
  
  <blockquote>
    <p>Arguments<br>
    PROJECT<br>
    The project file to build. If a project file is not specified, MSBuild
    searches the current working directory for a file that has a file
    extension that ends in proj and uses that file.</p>
  </blockquote>
  
  <p>Yet, when I run</p>
  
  <pre><code>dotnet build project.csproj -c Release
  </code></pre>
  
  <p>all directories are searched recursively, and it tries to build all the projects for which it finds .csproj files.</p>
  
  <p>In my case, there is project.csproj in the root directory.  Five directory levels down, there are three other .csproj files.  Here's what the files look like, names changed:</p>
  
  <ol>
  <li>./project.csproj</li>
  <li>./scriptlibrary/Projects/project1/dir1/dir2/project2.csproj</li>
  <li>./scriptlibrary/Projects/project1/dir1/dir3/project3.csproj</li>
  <li>./scriptlibrary/Projects/project1/dir1/dir4/project4.csproj</li>
  </ol>
  
  <p>When I run</p>
  
  <pre><code>dotnet build project.csproj -c Release
  </code></pre>
  
  <p>it finds the other .csproj files and tries to build them.  project.csproj has no dependencies on the other projects.</p>
  
  <p>This doesn't seem to be consistent with the documentation.  What can I do to constrain the build to the single project I specify, on the command line?</p>