title: ASP.NET Core with Angular 5 -- When to use the assets folder vs. the wwwroot folder?
body: <p>When using Angular 5 with ASP.NET Core, a new Visual Studio project contains both a wwwroot folder and an assets folder:</p>
  
  <p><a href="https://i.stack.imgur.com/R8kXM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/R8kXM.png" alt="wwwroot and assets"></a></p>
  
  <p><strong>The question is:</strong> In which folder should static content (images, css, etc.) be placed, and when would you use one vs. the other?</p>
  
  <p>According to <a href="https://stackoverflow.com/questions/27648045/what-is-wwwroot-in-asp-net-vnext">answers</a> online, the wwwroot folder is where static content should go:</p>
  
  <blockquote>
    <p>The wwwroot folder is new in ASP.NET 5.0. All of the static files in your project go into this folder. These are assets that the app will serve directly to clients, including HTML files, CSS files, image files, and JavaScript files.</p>
  </blockquote>
  
  <p>However, according to <a href="https://github.com/angular/angular-cli/wiki/stories-asset-configuration" rel="noreferrer">Angular's documentation</a>, static content can also go into the assets folder:</p>
  
  <blockquote>
    <p>You use the assets array in .angular-cli.json to list files or folders you want to copy as-is when building your project.</p>
  </blockquote>