We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Reference to type 'Task<>' claims it is defined in 'System.Runtime', but it could not be found.

From XlslO example
     await workbook.SaveAsAsync(storageFile);

CS7069 : Reference to type 'Task<>' claims it is defined in 'System.Runtime', but it could not be found.
can't run and get above error. After some googling and found someone said entering #r "System.Runtime" in C# Interactive can solve. But unfortunately, this can't solve for mine. I'm using VS community 2017 Version 15.9.7 and UWP application(Target version : Window 10, version 1803<10.0;Build17134>). 
Added XlslO from reference -> Universal Windows -> Extensions -> Syncfusion Controls for UWP XAML 17.1.0.38
any idea!!!!

1 Reply

AV Abirami Varadharajan Syncfusion Team April 12, 2019 01:09 AM

Hi Angus, 
 
This issue raised due to the conflicts between the different platform versions with your UWP application and XlsIO.UWP library. So we kindly request you to change the minimum and target version of your application to target Windows 10 Fall Creators Update (build 16299) or higher. 
 
This is a breaking change from version 17.1.0.38 and this changes based on MSDN to take advantages of .NET Standard 2.0 and to provide support to VS2019. These details has been documented in our UG link. Please find the documentation details below,  
 
  
You can find the MSDN documentation from below for your reference,  
  
  
 
Regards, 
Abirami 


Loader.
Live Chat Icon For mobile
Up arrow icon