更新时间:2023-02-09 08:59:43
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 theRuntime & 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.