<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Api v2 .Net4.0 no Task.Run method in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Api-v2-Net4-0-no-Task-Run-method/m-p/179344#M7267</link>
    <description>&lt;P&gt;I got a new app working from home on .Net4.5, using your example code:&lt;/P&gt;
&lt;P&gt;var task = Task.Run((Func&amp;lt;Task&amp;gt;)MainWindow.GetCurrentAccount);&lt;BR /&gt;task.Wait();&lt;/P&gt;
&lt;P&gt;However, at work they use .Net4.0, so I targeted that version.&lt;BR /&gt;Now the compiler tells me:&lt;/P&gt;
&lt;P&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp; 'System.Threading.Tasks.Task' does not contain a definition for 'Run'&lt;/P&gt;
&lt;P&gt;How should I do calls now?&lt;/P&gt;
&lt;P&gt;Best regards, Frans&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:31:21 GMT</pubDate>
    <dc:creator>Frans C.</dc:creator>
    <dc:date>2019-05-29T09:31:21Z</dc:date>
    <item>
      <title>Api v2 .Net4.0 no Task.Run method</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Api-v2-Net4-0-no-Task-Run-method/m-p/179344#M7267</link>
      <description>&lt;P&gt;I got a new app working from home on .Net4.5, using your example code:&lt;/P&gt;
&lt;P&gt;var task = Task.Run((Func&amp;lt;Task&amp;gt;)MainWindow.GetCurrentAccount);&lt;BR /&gt;task.Wait();&lt;/P&gt;
&lt;P&gt;However, at work they use .Net4.0, so I targeted that version.&lt;BR /&gt;Now the compiler tells me:&lt;/P&gt;
&lt;P&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp; 'System.Threading.Tasks.Task' does not contain a definition for 'Run'&lt;/P&gt;
&lt;P&gt;How should I do calls now?&lt;/P&gt;
&lt;P&gt;Best regards, Frans&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:31:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Api-v2-Net4-0-no-Task-Run-method/m-p/179344#M7267</guid>
      <dc:creator>Frans C.</dc:creator>
      <dc:date>2019-05-29T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Api v2 .Net4.0 no Task.Run method</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Api-v2-Net4-0-no-Task-Run-method/m-p/179345#M7268</link>
      <description>&lt;P&gt;Hi Frans,&lt;/P&gt;
&lt;P&gt;async Task library is shipped with .Net 4.5 which is not available for .Net 4.0. You can use TaskEx.Run instead which is part of the BCL library that Dropbox SDK depends on.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 03:37:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Api-v2-Net4-0-no-Task-Run-method/m-p/179345#M7268</guid>
      <dc:creator>Qiming Y.</dc:creator>
      <dc:date>2016-07-28T03:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Api v2 .Net4.0 no Task.Run method</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Api-v2-Net4-0-no-Task-Run-method/m-p/179346#M7269</link>
      <description>&lt;P&gt;Thanks for your quick response Qiming, I will try that.&lt;/P&gt;
&lt;P&gt;Best regards, Frans&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 03:59:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Api-v2-Net4-0-no-Task-Run-method/m-p/179346#M7269</guid>
      <dc:creator>Frans C.</dc:creator>
      <dc:date>2016-07-28T03:59:19Z</dc:date>
    </item>
  </channel>
</rss>

