NSubstitute
NSubstitute copied to clipboard
Bump System.Threading.Tasks.Extensions
I realize this might be a big ask but would it be possible to release a new 4.x version with a more recent version of System.Threading.Tasks.Extensions
? This will make consuming NSubstitute with Unity a bit easier when other libraries bring in newer versions of the tasks extensions. Unfortunately, Unity doesn't support assembly binding redirect the same way regular dot net projects do.
Hi @benoitdion ,
Which 4.x version did you want the later System.Threading.Tasks.Extensions
in? Current NSub supports 4.3+.
Happy to try to make things easier with Unity!
Awesome! 4.5.3
would be great. FWIW this happens to be the version that would work best for me based on other dependencies on the project and also happen to be the latest version at this time. 4.5.3
doesn't improve compatibility with Unity, it just makes it easier to my own use case.
In general though, keeping the transitive dependencies up to date is likely to cause fewer issues over time.
Is it fine to make the change from next NSub release (4.2.x or 4.3.x etc)? Or you need it from an older release?
If you add an explicit project reference to System.Threading.Tasks.Extensions
4.5.3
what problems does that cause in a project referencing NSub? (I thought NSubstitute will use the later version without any problems.)
Off of 4.2.2 would be perfect!
Unfortunately, it seems Unity requires a perfect match in some situations :(.
I see 5.1 is still using System.Threading.Tasks.Extensions 4.3+.
But of course, you could use a newer version in your code.
@dtchepak I think we don't have plans to change this? Should we close this one?