初始化
This commit is contained in:
34
WebApplication3/Program.fs
Normal file
34
WebApplication3/Program.fs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace WebApplication3
|
||||
#nowarn "20"
|
||||
open System
|
||||
open System.Collections.Generic
|
||||
open System.IO
|
||||
open System.Linq
|
||||
open System.Threading.Tasks
|
||||
open Microsoft.AspNetCore
|
||||
open Microsoft.AspNetCore.Builder
|
||||
open Microsoft.AspNetCore.Hosting
|
||||
open Microsoft.Extensions.Configuration
|
||||
open Microsoft.Extensions.DependencyInjection
|
||||
open Microsoft.Extensions.Hosting
|
||||
open Microsoft.Extensions.Logging
|
||||
|
||||
module Program =
|
||||
let exitCode = 0
|
||||
|
||||
[<EntryPoint>]
|
||||
let main args =
|
||||
|
||||
let builder = WebApplication.CreateBuilder(args)
|
||||
|
||||
builder.Services.AddControllers()
|
||||
|
||||
let app = builder.Build()
|
||||
|
||||
|
||||
app.UseAuthorization()
|
||||
app.MapControllers()
|
||||
|
||||
app.Run()
|
||||
|
||||
exitCode
|
||||
Reference in New Issue
Block a user