Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net 4.8框架下引用Csredis出现System.ValueTuple冲突的问题 #517

Open
wangyong969 opened this issue Nov 27, 2024 · 3 comments
Open

Comments

@wangyong969
Copy link

我的工程结构的类库的版本是4.8。而.Net framework4.8已经集成了System.ValueTuple到v4.8\mscorlib.dll之中。

但CsredisCore又依赖于System.ValueTuple。这样就导致出现引用冲突了。是否可以支持.Net 4.8。解决这一冲突?
Uploading 微信图片_20241127093013.png…

@wangyong969
Copy link
Author

错误 CS1503 参数 2:
无法从“System.ValueTuple<decimal, object> [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.8\mscorlib.dll]”
转换为“System.ValueTuple<decimal, object> [G:\001.S3Project\001_Erp_Source(主版本)\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll]”

@wangyong969
Copy link
Author

虽然可以使用extern alias CsRedisVT;进行解决,但始终感觉有点别扭。

@2881099
Copy link
Owner

2881099 commented Nov 27, 2024

建议切换到 FreeRedis,真正的零依赖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants