title: installing fontawesome 5.2.0 in Asp.Net Core 2.1.0
body: <p>I have installed <code>"@fortawesome/fontawesome-free": "5.2.0"</code> through <code>package.json</code> to my new project. It installs in root directory <code>node_modules\@fontawesome\etc.</code></p>
  
  <p>Now that I have added this to my <code>_Layout.cshtml</code> like <code>&lt;link href="~/vendor/fortawesome/fontawesome-free/css/all.css" rel="stylesheet" /&gt;</code></p>
  
  <p>Now fonts are not working as supporting files were installed under folder <code>@fontawesome</code>. If I change from <code>@fontawesome</code> to <code>fontawesome</code> it works well but system re-installing entire supporting files again to <code>node_modules\@fontawesome\etc.</code></p>
  
  <p>Please suggest a way to avoid this.</p>
  
  <p>Here is my <code>startup.cs</code> file</p>
  
  <pre><code>app.UseStaticFiles(new StaticFileOptions()
          {
              FileProvider = new PhysicalFileProvider(
              Path.Combine(Directory.GetCurrentDirectory(), @"node_modules")),
              RequestPath = new PathString("/vendor")
          });
  </code></pre>
  
  <p>If I link as it is path like <code>&lt;link href="~/vendor/@fortawesome/fontawesome-free/css/all.css" rel="stylesheet" /&gt;</code> the error is <code>"The name fortawesome does not exist in current context."</code></p>