在.net core 2.1.6中将Microsoft.aspnetcore.all更改为Microsoft.NETCore.App之后,UseLibuv选项消失了 [英] UseLibuv option gone after changing Microsoft.aspnetcore.all to Microsoft.NETCore.App in .net core 2.1.6
问题描述
我正在使用asp.net core 2.1.6 我刚刚将Microsoft.aspnetcore.all更改为Microsoft.NETCore.App,因为发布Web api项目的规模太大. 在我的代码中,我使用UseUseLibuv(o => o.ThreadCount = 1000)设置最小线程数
I am using asp.net core 2.1.6 I have just changed my Microsoft.aspnetcore.all to Microsoft.NETCore.App as publishing the web api project is making too much size. In my code i were using use UseLibuv(o => o.ThreadCount = 1000) to set minmum thread count
public static IWebHostBuilder BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args)
.UseStartup<StartupShutdownHandler>()
//.UseLibuv(o => o.ThreadCount = 1000)
;
现在此选项不可用.我该如何像现在一样设置最小线程
Now this option is not coming. How can i set min threads now like old one
与 Kestrel是否使用单个线程进行处理像Node.js这样的请求?
推荐答案
对于UseLibuv
,它在Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv
软件包下,您可以尝试从nuget安装Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv
.
For UseLibuv
, it's under Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv
package, you could try to install Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv
from nuget.
这篇关于在.net core 2.1.6中将Microsoft.aspnetcore.all更改为Microsoft.NETCore.App之后,UseLibuv选项消失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!