Could not load file or assembly 'System.ValueTuple'

前端 未结 18 1886
你的背包
你的背包 2020-12-08 18:02

I\'ve got a VS2017 project that compiles to a DLL which is then called by an EXE written by someone else. Both projects target .Net Framework 4.6.2. I rewrote one of my DLL

18条回答
  •  没有蜡笔的小新
    2020-12-08 18:37

    I just had this issue myself. Not on Localhost while developing, but only on production server. In the end it turned out to be some sort of conflict between .Net Framework 4.6.1 and me having System.ValueTuple installed from Nuget in version 4.5.0.

    The solution turned out to be, to downgrade the System.ValueTuple Nuget package to 4.3.0. Then it worked, like nothing had ever been an issue.

    I suspect that this only happened on production server, cause of a different version of .net framework installed.

提交回复
热议问题