Files
dotnet-packaging/demo/aspnetcore/Program.cs
Frederik Carlier b270c69e3e Use .NET Core 3.0 SDK to build (#124)
* Apps: target netcoreapp2.0, netcoreapp2.1 and netcoreapp3.0
This allows them to run on a wide range of SDKs

* Unit tests: run on netcoreapp3.0
This is the SDK we expect to be used when building dotnet-packaging

* Use .NET SDK 3.0
2019-11-21 21:23:06 +01:00

27 lines
692 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace aspnetcore
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}