title: How do I add custom stylesheets and scripts to a ASP.NET Core project?
body: <p>Let me start off by saying I've seen a StackOverflow question related to this but none of the solutions solved the problem.</p>
  
  <p>I'm trying to add custom stylesheets and JS script files to a new ASP.NET Core solution.</p>
  
  <p>The css and JS files in wwwroot do work just fine, but I'd like to be able to add my own as well.</p>
  
  <p>I've added a Content folder to the project with a CSS folder inside of that(Content folder > CSS folder > Site.css), attempted to wire it up with a link tag in the _Layout.cshtml file but no success.</p>
  
  <p>I also have a "Scripts" folder inside of the Content folder (Content folder > Scripts folder > CustomJS.js) mentioned above with the Javscript file (CustomJS.js) inside of that but am not sure how to wire that up either now that the BundleConfig file in the AppStart folder is gone.</p>
  
  <p>What am I missing here?</p>
  
  <p>Here is the _Layout.cshtml file from top to end of <em>head</em> tags.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;
      &lt;title&gt;@ViewData["Title"] - JavascriptPractice&lt;/title&gt;
  
      &lt;environment include="Development"&gt;
          &lt;link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" /&gt;
          &lt;link rel="stylesheet" href="~/css/site.css" /&gt;
          **&lt;link rel="stylesheet" href="~/Content/CSS/Site.css" /&gt;**
      &lt;/environment&gt;
      &lt;environment exclude="Development"&gt;
          &lt;link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css"
                asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
                asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" /&gt;
          &lt;link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" /&gt;
      &lt;/environment&gt;
  &lt;/head&gt;
  </code></pre>