首页 分享 Could not load file or assembly 'System.ValueTuple'

Could not load file or assembly 'System.ValueTuple'

来源:花匠小妙招 时间:2024-12-07 15:36

最新推荐文章于 2024-10-19 11:09:15 发布

repeatedly 于 2018-07-17 15:34:22 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

项目目标框架:.Net Framework 4.6.2
报错:Could not load file or assembly ‘System.ValueTuple’
在4.6.2项目中,想要使用C#7.0新特性ValueTuple,需要添加nuget引用System.ValueTuple。
项目一开始引用的是最早的版本4.3.0的System.ValueTuple,使用正常。
前几天更新成了当前最新稳定版4.5.0,发布项目,返回报错信息:Could not load file or assembly ‘System.ValueTuple, Version=4.0.3.0, Culture=neutral

在Stack Overflow找到同类问题,Could not load file or assembly ‘System.ValueTuple’

Stack Overflow给出的解决方案有多种:
第一种:System.ValueTuple nuget降级回4.3.0
第二种:修改配置文件,指定版本

我尝试了第一种方案,未能解决。
尝试第二种解决方案,项目运行完好,报错解决。

<dependentAssembly> <assemblyIdentity name="System.ValueTuple" culture="neutral" publicKeyToken="cc7b13ffcd2ddd51" /> <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" /> </dependentAssembly>1234

相关知识

Research advances in plant community assembly mechanisms
CropNet: Cassava Disease Detection
no such file or directory
大数据疑难杂症
onclick触发type=file并上传文件
使input type=“file” 不可编辑
input[type=“file”] change事件第二次不触发
Could not send gratuitous arps. rc=127
使用迁移学习对花卉进行分类
No columns to parse from file报错

网址: Could not load file or assembly 'System.ValueTuple' https://www.huajiangbk.com/newsview945769.html

所属分类:花卉
上一篇: 2024北京景山公园旅游攻略之牡
下一篇: 北京荷花文化节开幕,主题花“粉舞

推荐分享