Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core WebHost.CreateDefaultBuilder在Windows上托管而不使用IIS时_Asp.net Core - Fatal编程技术网

Asp.net core WebHost.CreateDefaultBuilder在Windows上托管而不使用IIS时

Asp.net core WebHost.CreateDefaultBuilder在Windows上托管而不使用IIS时,asp.net-core,Asp.net Core,我计划在Windows上托管Asp.NETCore2应用程序,而不使用IIS 创建web主机的默认方法似乎是使用WebHost.CreateDefaultBuilder。但让我困惑的是,内部有一个对方法useisintegration的调用 在Windows上托管不带IIS的Asp.Net Core 2应用程序时,是否可以使用WebHost.CreateDefaultBuilder?还是建议使用其他选项?使用WebHost.CreateDefaultBuilder 当使用IIS托管时,它只是作为

我计划在Windows上托管Asp.NETCore2应用程序,而不使用IIS

创建web主机的默认方法似乎是使用
WebHost.CreateDefaultBuilder
。但让我困惑的是,内部有一个对方法
useisintegration
的调用


在Windows上托管不带IIS的Asp.Net Core 2应用程序时,是否可以使用
WebHost.CreateDefaultBuilder
?还是建议使用其他选项?

使用
WebHost.CreateDefaultBuilder

当使用IIS托管时,它只是作为代理并将请求重定向到kestrel服务器

这不会造成太多问题


看看这篇文章

是的,部署应用程序时可以使用WebHost.CreateDefaultBuilder