-
-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use latest version of 'System.Threading.Tasks.Extensions' #690
Comments
Hi @godrose. Moq is currently intentionally specifying an older version of the STTE NuGet package because of the awful binding redirect problems the latest version of the day caused; see #566 (comment). But Moq doesn't pin that exact version. You should still be able to install a later version of STTE in your project. This might take some fiddling with NuGet settings.
That being said, NuGet tooling has likely improved in the meantime. Once we update the targeted platform(s) for Moq (see e.g. #630), I'll reevaluate & update all System package dependencies. That's likely going to happen for Moq 4.11.0. |
@stakx Thanks for the reply. |
@godrose - If you are using a recent version of Visual Studio and MSBuild, there should in theory be no need to manually configure binding redirects, unless perhaps you created your project file with previous tooling versions. Find a few things below that you can try. Using a recent VS version, things should be as simple as this: Create a new console app project (I've tried with both .NET 4.6.1 and .NET Core 2.0). Then install Moq 4.10.0. Then install STTE 4.5.1. The NuGet package manager will tell you that that it's going to upgrade STTE from version 4.3.0 to 4.5.1. Code & run. Make sure that the project which references Moq, or the executable project "above" it, references the desires version of the STTE package to enforce that package version. If you are targeting .NET Core, you shouldn't have to do anything esle since .NET Core isn't as strict when it comes to assembly versioning as the .NET Framework. If you are targeting the .NET Framework however, and you're using the new SDK-style If you are not using the new SDK-style For Moq 4.10.0 and STTE 4.5.1 (both the most recent versions at this time of writing), the generated binding redirect in <configuration>
...
<runtime>
...
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
</assemblyBinding>
...
</runtime>
...
</configuration> |
@godrose - Moq 4.10.1 which now uses System.Threading.Tasks.Extensions 4.5.1 should become available on NuGet.org in a short moment. |
Perfect timing!
On Mon, 3 Dec 2018 at 21:21 stakx ***@***.***> wrote:
@godrose <https://github.com/godrose> - Moq 4.10.1 which now uses
System.Threading.Tasks.Extensions 4.5.1 should become available on
NuGet.org in a short moment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#690 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHbkI8AVHA-BrrmuQn9nn98pY5VX0nxeks5u1XmvgaJpZM4WfWdD>
.
--
Best Regards,
Gena
|
The version 4.9.0 depends on specific version 4.3.0 of
System.Threading.Tasks.Extensions
package.This introduces conflicts with other external packages that use later versions of this package (like
System.Reactive
)The text was updated successfully, but these errors were encountered: