title: ASP.NET Core 2.1 - Should wwwroot be excluded from source control?
body: <p>I have asked a similar question earlier: <a href="https://stackoverflow.com/questions/45924300/asp-net-core-2-0-mvc-project-should-wwwroot-be-excluded-from-source-control">ASP.NET core 2.0 MVC project. Should wwwroot be excluded from source control?</a> and was pointed to a <code>.gitignore</code> file at <a href="https://github.com/github/gitignore/blob/master/VisualStudio.gitignore" rel="nofollow noreferrer">https://github.com/github/gitignore/blob/master/VisualStudio.gitignore</a> that is continuously being updated.</p>
  
  <p>When you create a new ASP.NET Core project (Razor in my case), a bunch of files are automatically generated under <code>wwwroot</code> folder. According to the comment in the <code>.gitignore</code> file, as <code>wwwroot</code> folder contains static files, it can safely be excluded from source control check-ins. However, I see a bunch of <code>bower.json</code> files under this folder:</p>
  
  <pre><code>./wwwroot/lib/jquery-validation-unobtrusive/.bower.json
  ./wwwroot/lib/bootstrap/.bower.json
  ./wwwroot/lib/jquery/.bower.json
  ./wwwroot/lib/jquery-validation/.bower.json
  </code></pre>
  
  <p>My question is, even if I exclude <code>wwwroot</code> folder, shouldn't we need to check in these bower files to re-build <code>wwwroot</code> folder on a new machine?</p>