title: Static Content in NancyFX with ASP.Net Core
body: <p>I'm using Nancy 2.0.0 with ASP.Net Core 2.0.0 and I can't get my application to return static content (in this case, a zip file) from a route defined in a Nancy module.</p>
  
  <p>The Nancy convention is to store static content in <code>/Content</code> and the ASP.Net Core convention is to store it in <code>/wwwroot</code>, but I can't get my app to recognize either.</p>
  
  <p>My <code>Startup.Configure</code> method looks like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  {
      app.UseStaticFiles();            
      app.UseOwin(b =&gt; b.UseNancy());
  }
  </code></pre>
  
  <p>And my module route looks like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>Get("/big_file", _ =&gt; {
      return Response.AsFile("wwwroot/test.zip");
  });
  </code></pre>
  
  <p>But Nancy always returns a 404 when I hit this route. I've also tried directing ASP.Net Core to the static directory expected by Nancy, like this:</p>
  
  <pre><code>app.UseStaticFiles(new StaticFileOptions()
  {
      FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @"Content")),
      RequestPath = new PathString("/Content")
  });
  </code></pre>
  
  <p>But this didn't work either. I've tried putting the file in <code>/Content</code> and in <code>/wwwroot</code> with the same result. And I've tried different casing of <code>Content</code>, but nothing seems to work. What am I missing?</p>