Remove temporary workaround and reinstate net462 target with official System.ValueTuple 4.6.2 dependency#36
Conversation
|
@copilot Don't change the CI workflow. We want to maintain our test coverage on net9 and 10. It's only the nuget package authoring that should be affected by this PR. |
- Remove net9.0 and net10.0 targets from root Directory.Build.props (net8.0 already provides compat) - Add net462 package target to src/Directory.Build.props - Add System.ValueTuple 4.6.2 dependency for net462 target - Update CI workflows to use .NET 8.0.* SDK only Co-authored-by: jnm2 <8040367+jnm2@users.noreply.github.com>
|
@copilot The commit title makes it appear that this PR is fixing the bug described in the linked issue, but it is not. The bug is already fixed. A better description is that we are removing our temporary workaround which fixed that bug and replacing it with the official approach. |
…list Co-authored-by: jnm2 <8040367+jnm2@users.noreply.github.com>
Done in 9afde45. Reverted both workflow files to their original state. The |
Good catch. The temporary workaround was dropping |
…g System.ValueTuple 4.6.2 dependency Co-authored-by: jnm2 <8040367+jnm2@users.noreply.github.com>
Co-authored-by: jnm2 <8040367+jnm2@users.noreply.github.com>
src/Directory.Build.propsto use a fixed TFM list (not appending from root) — removes the temporary workaround that droppednet462; reorder asnetstandard2.0;net462;net8.0(base case first, then ascending version order)System.ValueTuple 4.6.2PackageReference fornet462insrc/TaskTupleAwaiter/TaskTupleAwaiter.csprojwithout historical commentaryOriginal prompt
This section details on the original issue you should resolve
<issue_title>Compile error when TaskTupleAwaiter is used with System.ValueTuple 4.6.1 on .NET Framework</issue_title>
<issue_description>System.Text.Json 10.0.0 depends on System.ValueTuple 4.6.1. If you're on .NET Framework and you want to use System.Text.Json 10.0.0 and you use TaskTupleAwaiter, you will hit a slew of compile errors per
await:This only affects TaskTupleAwaiter v1.1.0+. v1.0.0 and v1.0.1 do not have this problem.
This also only affects the latest System.ValueTuple (4.6.1). The previous System.ValueTuple (4.5.0) does not have this problem.
Repro