dazinator / AspNetSolutionUpgradeTool

A utility that can be used to upgrade an ASP.NET 5 RC1 or RC2 based solution to ASP.NET Core 1.0.0 RTM.
MIT License
5 stars 2 forks source link

Migrate "exclude" #17

Closed dazinator closed 8 years ago

dazinator commented 8 years ago

In rc1, you can use "exclude" to exclude files / paths from compilation.

{
  "exclude":  ["wwwroot","node_modules","shadowed","artifacts", "modules" ] 
}

To migrate this to rc2 it now needs to look like:

{
  "buildOptions": {  
      "compile": {      
          "exclude":  ["wwwroot","node_modules","shadowed","artifacts", "modules" ]
       },
      "embed": {
          "exclude":  ["wwwroot","node_modules","shadowed","artifacts", "modules" ] 
      }
  }
}

RC2 project.sjon format also has a copyToOutput and publishOptions section, but they don't include anything by default so no need to add any exclude in to those.