1、下载ASP.NET Core运行时并安装到服务器: 下载 .NET 8.0 (Linux、macOS 和 Windows) (microsoft.com) 2、VS中发布 3、IIS设置 打开IIS,在左侧Sites邮寄新建Add Website: