ServiceStack .NET标准库缺少PublicKeyToken

问题描述 投票:1回答:1

我有一个运行在4.7.2上的.NET框架网站,该网站引用了ServiceStack.Text库,而我只引用了一个.NET Standard项目,该项目本身也引用了ServiceStack.Text。

<

enter image description here

enter image description here

其他人以前有没有经历过?

servicestack .net-standard-2.0 servicestack-text
1个回答
0
投票
这是设计使然,默认情况下为only the .NET Framework builds are Strong named以支持旧版环境。

注意,在同一解决方案中,can't mix & match .NET Framework and .NET Standard builds,如果您需要一个强大的名为ServiceStack.Text的库,则需要将.NET Standard项目同时定位为多个目标,并将.NET Framework也定位为目标。

© www.soinside.com 2019 - 2024. All rights reserved.