c# - How to suppress Tasks.Task different PublicKeyToken error -
i noticed 1 line of code underlined. if understand correctly, error means have 2 different versions of library in solution. error doesn't stop solution compiling , works it's supposed work. reason of visual studio underlining line of code? how can stop happening? incoherence?
the exact error is:
cannot convert instance argument type 'system.threading.tasks.task [mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]' 'system.threading.tasks.task [system.threading.tasks, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a]'
i use nito.asyncex v3.0.1
package in webapi (v5.2.3 think) solution targets .net framework 4.5.1. let me know if need more information.
i removed reference system.runtime
, seems fixed issue. followed advices below question kind of blindly, seems same issue.
Comments
Post a Comment