1 回答

TA貢獻1785條經驗 獲得超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();
和啟動設置:
"CZKestrel": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:59883/"
}
用于本地調試。
為了讓它作為服務工作,我做了 dotnet restore 和 dotnet build,我只將帶有創建的 dll 的文件夾復制到另一個地方,而不是運行/啟動服務。我想當我啟動它時,我應該在里面或 dll 文件夾上面的一個文件夾?,F在可以了。
- 1 回答
- 0 關注
- 96 瀏覽
添加回答
舉報