如何在 ASP.NET 5 RC1 中重新添加 WebForms?

How do I add WebForms back in ASP.NET 5 RC1?

在AspNet5 rc 1, web application project For loading of html / js pages,

  1. 默认不支持 aspx 页面。

    app.UseStaticFiles()

这允许浏览静态 html 文件。如何添加 Web 表单、aspx 功能(dnx451、dnxcore50)

  1. 默认情况下,aspnet5 中允许的文件扩展名/mime 类型是什么。问这个是因为,在添加静态文件功能后,调用 website/test.html 页面加载正常,但浏览 website/test.aspx returns 404 但页面在 wwwroot 文件夹下可用项目内部
  1. ASP.NET5 不支持 WebForms。因此,不支持服务 aspx。
  2. 允许的文件扩展名列表在这里:https://github.com/aspnet/StaticFiles/blob/657a5ab26bea3f0b9293a216f28f7b37e004d707/src/Microsoft.AspNet.StaticFiles/FileExtensionContentTypeProvider.cs