AspNetCore.Docs/aspnetcore/migration/mvc/sample/Program.cs

20 lines
443 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore;
2016-10-29 01:35:15 +08:00
namespace WebApp1
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
2016-10-29 01:35:15 +08:00
.UseStartup<Startup>()
.Build();
}
}