StackExchange / StackExchange.Redis

General purpose redis client
https://stackexchange.github.io/StackExchange.Redis/
Other
5.89k stars 1.51k forks source link

.NET 4.0 version in Nuget can not be compiled #371

Closed JeffreySu closed 7 years ago

JeffreySu commented 8 years ago

error:

(Chinese)

严重性 代码 说明 项目 文件 行 警告 未能解析主引用“StackExchange.Redis, Version=1.0.316.0, Culture=neutral, processorArchitecture=MSIL”,因为它对框架程序集“System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”有间接依赖关系,而在当前目标框架中未能解析该程序集。“.NETFramework,Version=v4.0”。若要解决此问题,请移除引用“StackExchange.Redis, Version=1.0.316.0, Culture=neutral, processorArchitecture=MSIL”,或将应用程序的目标重新指向包含“System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”的框架版本。 Senparc.Weixin.Cache.Redis
警告 未能解析主引用“StackExchange.Redis, Version=1.0.316.0, Culture=neutral, processorArchitecture=MSIL”,因为它对框架程序集“System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”有间接依赖关系,而在当前目标框架中未能解析该程序集。“.NETFramework,Version=v4.0”。若要解决此问题,请移除引用“StackExchange.Redis, Version=1.0.316.0, Culture=neutral, processorArchitecture=MSIL”,或将应用程序的目标重新指向包含“System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”的框架版本。 Senparc.Weixin.Cache.Redis

(Transtlated)

Warning failed to parse the main reference "StackExchange. Redis, Version = 1.0.316.0, Culture = neutral, processorArchitecture = MSIL", because it is the framework assemblies "System. The Runtime, Version = 2.6.10.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" indirect dependencies, and in the frame of the current target failed to resolve the assembly.". NETFramework, Version = v4.0 ".To solve this problem, please remove the reference "StackExchange. Redis, Version = 1.0.316.0, Culture = neutral, processorArchitecture = MSIL", or the goal of the application to include "System. The Runtime, Version = 2.6.10.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" framework Version.Senparc. Weixin. Cache. Redis Warning failed to parse the main reference "StackExchange. Redis, Version = 1.0.316.0, Culture = neutral, processorArchitecture = MSIL", because it is the framework assemblies "System. The Threading. Tasks, Version = 2.6.10.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" indirect dependencies, and in the frame of the current target failed to resolve the assembly.". NETFramework, Version = v4.0 ".To solve this problem, please remove the reference "StackExchange. Redis, Version = 1.0.316.0, Culture = neutral, processorArchitecture = MSIL", or the goal of the application to include "System. The Threading. Tasks, Version = 2.6.10.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" framework Version.Senparc. Weixin. Cache. Redis

JeffreySu commented 8 years ago

The project is .NET 4.0

mgravell commented 8 years ago

What compiler / IDE are you using in this example? (So I can try to reproduce it) On 12 Mar 2016 8:11 a.m., "Jeffrey Su" notifications@github.com wrote:

The project is .NET 4.0

— Reply to this email directly or view it on GitHub https://github.com/StackExchange/StackExchange.Redis/issues/371#issuecomment-195695289 .

JeffreySu commented 8 years ago

VS 2015, default complier.

mgravell commented 8 years ago

Have you tried with 605? If so: what exactly do you see? It should just work...

On 28 Sep 2016 4:41 p.m., "Jeffrey Su" notifications@github.com wrote:

VS 2015, default complier.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/StackExchange/StackExchange.Redis/issues/371#issuecomment-250206261, or mute the thread https://github.com/notifications/unsubscribe-auth/AABDsHp5n4o18735_2amrj2-ojMiVoIHks5quoqYgaJpZM4HvQIh .

NickCraver commented 7 years ago

Closing this out since I have other reports of this working correctly since the recent ref fixes.