System.ValueTuple package should not be referenced for .NET 4.7+ projects
See original GitHub issueVersion: 7.0.1
Expected behavior
System.ValueTuple dependency should not be included in projects that target .NET 4.7 and up.
Actual behavior
System.ValueTuple dependency is added and causes our web projects, which target .net 4.7.2, to require the following web.config binding redirect:
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="CC7B13FFCD2DDD51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
</dependentAssembly>
Which is in turn leading to a System.ExecutionEngine
exception for us in w3wp.exe that I’ve been unable to track down. Our projects are a mix of .NET 4.7.2 and .NET Standard 2.0 projects and the dependency is likely causing a binary compatibility issue between the different implementations. We’ve experienced similar issues with System.Net.Http in the past.
With AutoMapper 7.0.0, the dependency is not there, and all works well.
Issue Analytics
- State:
- Created 5 years ago
- Comments:27 (14 by maintainers)
Top Results From Across the Web
Could not load file or assembly 'System.ValueTuple'
I've got a VS2017 project that compiles to a DLL which is then called by an EXE written by someone else. Both projects...
Read more >15.5 Preview cannot build C# projects using System. ...
The moment I updated 15.4 Preview to 15.5 Preview, projects that are using the default 4.7 ValueTuple can't build. I've tried downgrading to ......
Read more >Compil error CS8179 using a "tuple" after updating Visual ...
Net Framework 4.7, System.ValueTuple is included in mscorlib.dll, so if you are using a newer version, you do not need to reference System....
Read more >Fixing System Value Tuple Error
To fix the issue, you need to reference the System.ValueTuple NuGet package either via Visual Studio's NuGet manager or via the Package Manager...
Read more >Could not locate the assembly "System.ValueTuple"
My project has a dependency on System.ValueTuple that is downloaded with NuGet. Everything builds fine in Visual Studio and our build server ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m also experiencing troubles with
System.ValueTuple
versions conflict when referencing AutoMapper v8.0.0 package in net472-targeted projects.I’ve got the following weird build warning:
There were no such problems with AutoMapper v7.0.0 package.
Just curious, what the overhead for you will bring adding an extra net47 build target to AutoMapper?
I think dropping net461 build target will work for me also 😃
Yep!
On Wed, Apr 24, 2019 at 9:45 AM SkinnySackboy notifications@github.com wrote: