支持挂Windows服务
This commit is contained in:
parent
e432256383
commit
9c85165717
|
@ -12,6 +12,7 @@ namespace StaffManagement
|
|||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.UseWindowsService()
|
||||
.ConfigureWebHostDefaults(webBuilder => {
|
||||
webBuilder.UseStartup<Startup>();
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user