且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

.NET Core-自包含部署无法正常工作

更新时间:2023-02-09 08:59:43

Lex Li的评论/

Lex Li's comment/ blog post contains the answer. I'm detailing it here to try to save someone else losing days to this simple misunderstanding.

一个独立的部署确实包含运行时,但是 它不包含您得到的ASP.NET Core module for IIS .net下载中下载Runtime & Hosting Bundle时 页面.

A self contained deployment does indeed include the runtime, but it doesn't include the ASP.NET Core module for IIS which you get when you download the Runtime & Hosting Bundle from the .net downloads page.

因此,如果要部署到IIS,则即使是自包含部署,也将需要运行Runtime & Hosting Bundle安装程序.

So if you are deploying to IIS, you will need to run the Runtime & Hosting Bundle installer even for a self contained deployment.

一个自包含的部署仅意味着该应用程序将使用该应用程序打包的.NET Core Runtime,而不是计算机上安装的任何内容.

A self contained deployment just means the application will use the .NET Core Runtime packaged with the application rather than whatever is installed on the machine.