aspnetcore/src/Microsoft.DotNet.Web.Projec.../content/WebApi-CSharp/Program.cs

29 lines
680 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
namespace Company.WebApplication1
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
#if (IncludeApplicationInsights)
.UseApplicationInsights()
#endif
.Build();
host.Run();
}
}
}