Cannot load System.Threading.Tasks assembly, using Google Calendar API

前端 未结 1 597
名媛妹妹
名媛妹妹 2021-02-09 06:13

SOLVED !

Huge thank to Sam Leach

Here is a sample of my working app.config file:


       ...
    
        &         


        
相关标签:
1条回答
  • 2021-02-09 06:57

    Remove all references to System.Threading.Tasks and then add in the one from whatever .NET version you are using (.NET 4.0).

    The Google Calendar API might be using a different version of .NET

    Manually Redirecting Assembly

    You can specify which version of the assembly to use in your app.config

      <dependentAssembly>
        <assemblyIdentity name="someAssembly"
          publicKeyToken="32ab4ba45e0a69a1"
          culture="en-us" />
    
        <bindingRedirect oldVersion="7.0.0.0" newVersion="8.0.0.0" />
      </dependentAssembly>
    
    0 讨论(0)
提交回复
热议问题