title: Can't Reference Static Files From RCL
body: <p>I'm working on a Blazor project, where I basically have 3 projects: <code>Client</code>, <code>Server</code>, and <code>Components</code>. <code>Components</code> is an RCL. The structure is similar to the following:</p>
  
  <pre><code>Components (RCL)
  -- wwwroot/
  ---- js/
  ------ main.js
  
  Client
  -- wwwroot/
  ---- js/
  ------ main.js
  
  Server
  -- Startup.cs (in Configure(IApplicationBuilder app), calling `app.UseClientSideBlazorFiles&lt;Client.Startup&gt;();`)
  -- Pages
  ---- _Host.cshtml (in this file, referencing a main.js from the Components project like: &lt;script src="_content/Components/js/main.js"&gt;&lt;/script&gt;)
  </code></pre>
  
  <p>So <code>_Host.cshtml</code> in the Server project is the entry point. I'm trying to reference the main.js file from the <strong>Components</strong> RCL, by doing this:</p>
  
  <p><code>&lt;scipt src="_content/Components/js/main.js"&gt;&lt;/script&gt;    &lt;&lt;--- NOT WORKING</code></p>
  
  <p>But it's not working - I get a 404. I'm basing it on <a href="https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-3.1&amp;tabs=visual-studio#create-an-rcl-with-static-assets" rel="nofollow noreferrer">this</a> and more specifically <a href="https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-3.1&amp;tabs=visual-studio#consume-content-from-a-referenced-rcl" rel="nofollow noreferrer">this</a>.</p>
  
  <p>Note that I am able to refer to main.js file in the Client project by doing this</p>
  
  <p><code>&lt;script src="js/main.js"&gt;&lt;/script&gt;    &lt;&lt;&lt;--- WORKS</code></p>
  
  <p>But referencing static files in the RCL using the <code>_content/{library_name}/...</code> convention is not working.</p>
  
  <p>What's the problem?</p>