title: Exclude non-minified files from publish in `project.json` with ASP.NET Core
body: <p>I am trying to find a proper configuration for the <code>publishOptions</code> inside <code>project.json</code> (ASP.NET Core 1.0 / Full Framework) so that non-minified files are not published.</p>
  
  <p>Official documetation doesn't help much: <a href="https://docs.microsoft.com/en-us/dotnet/articles/core/tools/project-json#publishoptions" rel="nofollow">project.json reference</a>.</p>
  
  <p>Searching for globbing patterns, and finding some artilcles with <code>gulp</code> examples,  I came up with this <code>wwwroot/js/**/*!(*.min.js)</code>, but it doesn't seem to work.</p>
  
  <p>Is my syntax wrong? Or, it's just that <code>project.json</code> and <code>dotnet publish</code> don't support this syntax?</p>
  
  <pre><code>"publishOptions": {
      "include": [
          "wwwroot",
          "Views",
          "Areas/**/Views",
          "appsettings.json",
          "web.config"
      ],
      "exclude": [
          "wwwroot/lib",
          "wwwroot/js/**/*!(*.min.js)",
          "wwwroot/css/*.less",
          "wwwroot/_references.js"
      ],
      "includeFiles": [],
      "excludeFiles": []
  },
  </code></pre>