StephenCleary / AsyncEx

A helper library for async/await.
MIT License
3.51k stars 358 forks source link

Typeload Exception when AsyncEx Version Differs in Dependency Graph #200

Closed HelloKitty closed 4 years ago

HelloKitty commented 4 years ago

I have a project that depends on various other projects and nuget packages, some reference different versions of AsynxEx library. As a result of upgrading to 5.0.0 on my project I now encounter: Could not resolve type with token 0100003b (from typeref, class/assembly Nito.AsyncEx.AwaitableDisposable1, Nito.AsyncEx.Coordination, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null)

and have been unable to resolve this runtime error even with specifying the exact version of AsyncEx in the current project as 5.0.0.

HelloKitty commented 4 years ago

Was able to resolve this by clearing all binary directories and referencing 5.0.0 on the root common csproj.