Task<> does not contain a definition for 'GetAwaiter'

后端 未结 11 1265
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 07:11

Client

iGame Channel = new ChannelFactory ( new BasicHttpBinding ( BasicHttpSecurityMode . None ) , new EndpointAddress ( new Uri ( \"http://loc         


        
11条回答
  •  萌比男神i
    2020-11-30 07:47

    The Problem Occur Because the application I was using and the dll i added to my application both have different Versions.

    Add this Package- Install-Package Microsoft.Bcl.Async -Version 1.0.168

    ADDING THIS PACKAGE async Code becomes Compatible in version 4.0 as well, because Async only work on applications whose Versions are more than or equal to 4.5

提交回复
热议问题