aspnetcore/template_feed/Microsoft.DotNet.Web.Projec.../content/WebApi-FSharp/Program.fs

25 lines
547 B
Forth

namespace Company.WebApplication1
open System
open System.IO
open Microsoft.AspNetCore.Hosting
module Program =
let exitCode = 0
[<EntryPoint>]
let main args =
let host =
WebHostBuilder()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
#if (IncludeApplicationInsights)
.UseApplicationInsights()
#endif
.Build()
host.Run()
exitCode