且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

未找到应用程序依赖项清单 (...) 中指定的程序集

更新时间: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>