1 回答

TA貢獻(xiàn)1785條經(jīng)驗(yàn) 獲得超8個贊
我得到它的工作
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseIISIntegration()
.UseApplicationInsights()
.UseKestrel(options =>
{
options.Listen(IPAddress.Parse("0.0.0.0"), 5000);
})
.Build();
和啟動設(shè)置:
"CZKestrel": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:59883/"
}
用于本地調(diào)試。
為了讓它作為服務(wù)工作,我做了 dotnet restore 和 dotnet build,我只將帶有創(chuàng)建的 dll 的文件夾復(fù)制到另一個地方,而不是運(yùn)行/啟動服務(wù)。我想當(dāng)我啟動它時,我應(yīng)該在里面或 dll 文件夾上面的一個文件夾?,F(xiàn)在可以了。
- 1 回答
- 0 關(guān)注
- 102 瀏覽
添加回答
舉報