We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca7f32 commit fa5d4fdCopy full SHA for fa5d4fd
src/CheeseMVC/Program.cs
@@ -1,24 +1,23 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5
using System.Threading.Tasks;
6
using Microsoft.AspNetCore.Hosting;
7
+using Microsoft.AspNetCore;
8
9
namespace CheeseMVC
10
{
11
public class Program
12
13
public static void Main(string[] args)
14
- var host = new WebHostBuilder()
15
- .UseKestrel()
16
- .UseContentRoot(Directory.GetCurrentDirectory())
17
- .UseIISIntegration()
+ BuildWebHost(args).Run();
+ }
+
18
+ public static IWebHost BuildWebHost(string[] args) =>
19
+ WebHost.CreateDefaultBuilder(args)
20
.UseStartup<Startup>()
21
.Build();
-
- host.Run();
22
- }
23
}
24
0 commit comments