Make all templates as consistent as possible with stock MVC Core 2.0 one

This commit is contained in:
Steve Sanderson
2017-05-19 11:36:17 +01:00
parent 3ee16a5ba5
commit 42b88c15f2
64 changed files with 521 additions and 375 deletions

View File

@@ -3,7 +3,10 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace WebApplicationBasic
{
@@ -11,14 +14,12 @@ namespace WebApplicationBasic
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}