更新时间:2022-11-06 13:49:50
开发机器通常安装了 SDK,但在生产环境中只有运行时.
Development machines usually have the SDK installed but on production the runtime only.
将以下内容添加到您的 .csproj 文件并再次发布.
Add the following to your .csproj file and publish again.
<PropertyGroup>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>