Home > Net >  Vs2017 net4.6.1, refer to a third party library error: unable to load file or assembly System. Value
Vs2017 net4.6.1, refer to a third party library error: unable to load file or assembly System. Value

Time:09-27

Vs2017+.net 4.6.1, refer to a third party library error: unable to load file or assembly System. ValueTuple

Reference of third-party libraries is: PuppeteerSharp_1. 19.0, the class libraries require reference project must be the net core 2.0 or above net4.6.1,

Refer to the class library project, on a local machine with vs2017 run normally,
But in to the client machine (win10+.net 4.6.1), but an error:
FileLoadException: failed to load file or assembly "System. ValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" or one of its dependencies, find the assembly references list definition and assembly of mismatch, (exception from HRESULT: 0 x80131040)

Article I found on the web:
1, https://blog.csdn.net/qq512982554/article/details/86587736, EF, the Core of new migration when unable to load the assembly "error System. ValueTuple"
2, https://blog.csdn.net/norsd/article/details/104318443, c # program without other abnormal Visual Studio environment operation error form such as: Could not load file or assembly 'System. ValueTuple
3, https://blog.csdn.net/WPwalter/article/details/89052379, the.net applications enable and disable automatic generation of binding redirects (bindingRedirect), to solve the problem of the dependence on the different versions of DLL

According to the article, to project XML file to add the following nodes:

True
True


But still remains an error, I ask, this kind of circumstance how to solve?

CodePudding user response:

Low vs2017 version, you install a 2019

CodePudding user response:

ValueTuple is one of the new features in c # 7.0, the.net Framework above 4.7 version is available, if I remember correctly,

CodePudding user response:

An error is obviously the currently selected. You low version of the.net Framework
  •  Tags:  
  • C#
  • Related