美文网首页.Net Core
.Net Core Could not load file o

.Net Core Could not load file o

作者: Rinaloving | 来源:发表于2022-04-07 23:15 被阅读0次

    Could not load file or assembly 'System.Private.ServiceModel, Version=4.1.2.4, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

    .net core 引用wcf 在发布的时候报错提示:Could not load file or assembly 'System.Private.ServiceModel, Version=4.1.2.4, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

    解决办法将 wcf 的引用包版本升级到4.5.0以上就可以了

    <PackageReference Include="System.ServiceModel.Duplex" Version="4.5.0" />
    <PackageReference Include="System.ServiceModel.Http" Version="4.5.0" />
    <PackageReference Include="System.ServiceModel.NetTcp" Version="4.5.0" />
    <PackageReference Include="System.ServiceModel.Security" Version="4.5.0" />

    相关文章

      网友评论

        本文标题:.Net Core Could not load file o

        本文链接:https://www.haomeiwen.com/subject/smdesrtx.html