to add a Cover Page in .net Core, Please do the following Steps:

Step 1. change the Startup Class

In Starup.cs, append the following Code to the Configure Function:

app.UseDefaultFiles(new DefaultFilesOptions
{
    DefaultFileNames = new
        List<string> { "index.html" }
});
app.UseStaticFiles();
1
2
3
4
5
6

The whole class with become:

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }
    else
    {
        app.UseHsts();
    }
    app.UseDefaultFiles(new DefaultFilesOptions
    {
        DefaultFileNames = new
            List<string> { "index.html" }
    });
    app.UseStaticFiles();
    app.UseHttpsRedirection();
    app.UseMvc();
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Step 2. add an index.html file (as a Cover Page)

add index.html file in wwwroot folder code as below

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h1>Cover Page</h1>
</body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12

Done!