我安装了Redis StackExchange nuget,工作正常.但后来我安装了RedisSessionStateProvider nuget,它安装了StackExchange.Redis.StrongName. 现在我收到以下错误, Error 107 The type ‘StackExchange.Redis.IDatabase‘ exists i
现在我收到以下错误,
Error 107 The type ‘StackExchange.Redis.IDatabase‘ exists in both
‘e:\Source\packages\StackExchange.Redis.1.0.481\lib\net45\StackExchange.Redis.dll’
and
‘e:\Source\packages\StackExchange.Redis.StrongName.1.0.481\lib\net45\StackExchange.Redis.StrongName.dll’ E:\Source\MyApp\Helpers\RedisHelper\StackExchangeRedisExtensions.cs 13 37 MyApp
为什么是这样?
一些方法/属性/接口在上面的两个dll中重复.删除StackExchange.Redis引用以解决错误.