StackExchange.Redis-StrongName 同时存在于 错误!

在您的项目文件(csproj)加入如下代码 代表全部是用 StackExchange.Redis.StrongName ,也可以根据您的需求自行修改

1
2
3
4
5
6
7
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
<ItemGroup>
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'">
<Aliases>signed</Aliases>
</ReferencePath>
</ItemGroup>
</Target>

参考:https://stackoverflow.com/questions/46047718/stackexchange-redis-strongname-is-refrenced-but-not-included-as-package