title: Build all csproj files, except Test projects
body: <p>In DevOps you can create a <code>dotnet build</code> task where "Path to project(s)" can be set to <code>**/*.csproj</code> to build all the projects.</p>
  
  <p>This works just fine, but it (obviously) also builds my <code>*.Test.csproj</code> projects.</p>
  
  <p>I found some posts mentioning exclude patterns, so I tried doing the same as in those posts and tried the following combinations:</p>
  
  <pre><code>**/*.csproj;-**/*.Test.csproj
  **/*.csproj;!**/*.Test.csproj
  
  **/*.csproj;-:**/*.Test.csproj
  **/*.csproj;!:**/*.Test.csproj
  </code></pre>
  
  <p>For all attempts I get the following error in the DevOps log:</p>
  
  <blockquote>
    <p>Project file(s) matching the specified pattern were not found.</p>
  </blockquote>
  
  <p>So, how can I create a <code>dotnet build</code> task to build all my projects <em>except</em> the <code>*.Test.csproj</code> projects?</p>