发布到IIS.省略在服务器上安装.NET Core Windows Server Hosting捆绑包 [英] Publish to IIS. Omit installing .NET Core Windows Server Hosting bundle on the server

查看:231
本文介绍了发布到IIS.省略在服务器上安装.NET Core Windows Server Hosting捆绑包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET Core文档说,先决条件之一是

ASP.NET Core documentation says, that one of the prerequisites is to install .NET Core Windows Server Hosting bundle on the target server.

是否可以通过某种方式将此依赖项包含到由dotnet-publish创建的自包含程序包中,并避免现场安装?

Is it possible to somehow include this dependency into self contained package, created by dotnet-publish, and avoid on-site installation?

推荐答案

否.该捆绑软件包含Asp.Net Core模块-以及与IIS一起运行Asp.NET Core应用程序所需的本机IIS模块.如果未安装Asp.NET Core模块,而您是通过安装Windows Server Hosting捆绑包来安装的,则IIS将不知道如何启动您的应用程序.有关使用IIS

No. The bundle contains the Asp.Net Core Module - and native IIS module which is required to run Asp.NET Core application with IIS. IIS will not know how to start your application if Asp.NET Core Module is not installed and you install it by installing the Windows Server Hosting bundle. More about running ASP.NET Core apps with IIS here.

这篇关于发布到IIS.省略在服务器上安装.NET Core Windows Server Hosting捆绑包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆