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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





143946 Apr 11,2019 09:05 AM UTC Apr 13,2019 08:37 AM UTC UWP 1
Tags: XlsIO
angus chao
Asked On April 11, 2019 09:05 AM UTC

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
any idea!!!!

Abirami Varadharajan [Syncfusion]
Replied On April 12, 2019 09:09 AM UTC

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 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,  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon