StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

Type “ConfigurationOptions” Exist in “StackExchange.Redis.StrongName” and “StackExchange.Redis”中

Open mrbeans opened this issue 7 years ago • 4 comments

类型“ConfigurationOptions”同时存在于“StackExchange.Redis.StrongName, Version=1.2.4.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46”和“StackExchange.Redis, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46”中

I have notice there are so many people got this error,but now this problem is still there,so i want to know when will this error will be fixed,or is there have any solution(besides StackExchange.Redis Issues or Nuget Issues )? thank you!

mrbeans avatar Mar 17 '19 13:03 mrbeans

Having the lib from two packages is a very bad idea. Do you need the old version? Is that coming from another downstream dependency? If so: you should stick with that version until the other version removes/updates it's dependencies.

On Sun, 17 Mar 2019, 06:54 刘永超, [email protected] wrote:

类型“ConfigurationOptions”同时存在于“StackExchange.Redis.StrongName, Version=1.2.4.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46”和“StackExchange.Redis, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46”中

I have notice there are so many people got this error,but now this problem is still there,so i want to know when will this error will be fixed,or is there have any solution(besides StackExchange.Redis Issues https://github.com/StackExchange/StackExchange.Redis/issues/697 or Nuget Issues https://github.com/NuGet/Home/issues/4989 ),thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/StackExchange/StackExchange.Redis/issues/1096, or mute the thread https://github.com/notifications/unsubscribe-auth/AABDsKtSsUwgt9vnoq3-HRSk8f-roRToks5vXkkkgaJpZM4b4ZZv .

mgravell avatar Mar 17 '19 14:03 mgravell

I had the same issue, The solution is either tweaking your .csproj file or installing one over the other. We really need a permanent fix. It turns out a project depended on another project that depended on the strongname version. took me three days to fix this one.

FrankDupree avatar May 24 '19 07:05 FrankDupree

@FrankDupree do you mind sharing your fix for the poor soul who is trying to upgrade stackexchange.redis in netcoreapp 2.x?

mcheung610 avatar Jul 19 '19 03:07 mcheung610

用新装 Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="3.1.0"

wuchang avatar Dec 18 '19 05:12 wuchang