Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Value Tuple Could not load file or assembly 'System.ValueTuple, Version=4.0.1.0, #1783

Closed
Meenakshise opened this issue Nov 27, 2020 · 1 comment

Comments

@Meenakshise
Copy link

Meenakshise commented Nov 27, 2020

tuple-not-loading-log.txt

I have web project which is targeted to 4.6.2 .net framework. This project is calling a framework library which is targeted to the same .net framework 4.6.2. But in the framework library project it is referencing the system.valuetuple of 4.3.0 via the nuget package.

This valuetuple 4.3.0 targets .net standard 1.0 and .net framework 4.5. But our UI project is targeting 4.6.2. And we are getting this valuetuple not able to load. Could you please tell me why so ?

So if i am referencing a library that targets .net standard and .net framework of which the referencing project doesnt target to . How does the dll assemblies work here ? Really confused. Please help us

Basically I am getting this error. The detailed log is attached in tuple-not-loading file.
_message: "ReflectionTypeLoadException: Could not load file or assembly 'System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified."

VS 2017 IDE is used to build the project

@terrajobst
Copy link
Member

We decided to close this as won't fix.

The core issue is that we retroactively made .NET Framework 4.6.1 implement .NET Standard 2.0, which is why we recommend to use .NET Framework 4.7.2 for any application that needs to use .NET Standard 1.5 or higher. We cannot change .NET Framework 4.6.1 in-place; you need to upgrade in order to get proper support for the .NET Standard 1.5+ functionality.

@terrajobst terrajobst closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants