在VS2022上项目上 右键-》发布: 选择Folder: 选择运行方式: FDD:Framework-dependent,服务器需要预先安装Framework SCD:Self-contained,已经自包含,不需要预先安装Framework