VNext + OSX + Chrome でいくつかの実験を行っています。woff2 ファイルを取得しようとしています
GET http://localhost:5003/fonts/fontawesome-webfont.woff2?v=4.3.0
しかし、エラーが発生します。以下のリクエストのヘッダーを参照してください
Remote Address:127.0.0.1:5003
Request URL:http://localhost:5003/fonts/fontawesome-webfont.woff2?v=4.3.0
Request Method:GET
Status Code:404 Not Found
これは私の Startup.cs です
public void Configure(IApplicationBuilder app)
{
app.UseStaticFiles();
app.UseServices(services =>
{
services.AddMvc();
});
// Add MVC to the request pipeline
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller}/{action}/{id?}",
defaults: new { controller = "Home", action = "Index" });
});
}
Github で StaticFiles に関する AspNet プロジェクトの内部を見ました (以下のリンク)。サポートされているようです。
助けてくれませんか?