【发布时间】:2016-09-10 01:14:12
【问题描述】:
我有一个 html 文件 index.html,我想将它与我的 asp.net5 项目链接。
我尝试在 wwwroot 中添加 index.html,当我开始调试时,我转到 localhost:port/index.html,但它什么也没显示。
有人可以链接到文档或解释如何做吗?
PS:我用的是visual-studio。
配置代码:
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app)
{
app.UseIISPlatformHandler();
app.Run(async (context) =>
{
await context.Response.WriteAsync("test");
});
}
【问题讨论】:
标签: c# html asp.net visual-studio