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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Syncfusion.XlsIO.Portable.dll from\Assemblies\.NET Standard 1.2

Thread ID:





131601 Jul 18,2017 12:37 PM UTC Jul 20,2017 06:18 AM UTC ASP.NET Core 3
Tags: XlsIO
Asked On July 18, 2017 12:37 PM UTC

Hi folks,

I did not find an specific forum for PDF. So I writte in general.
I need to write a netstandard 1.6 lib for using it in WPF and Xamarin. This lib extract cells from xls. This code seems is very straigthforward:

(source: https://www.syncfusion.com/products/file-formats/xlsio)

using (ExcelEngine excelEngine = new ExcelEngine())
	//Open an existing workbook.
	IWorkbook workbook = excelEngine.Excel.Workbooks.Open(@"Sample.xlsx");

	//Access the first worksheet from the workbook instance.
	IWorksheet worksheet = workbook.Worksheets[0];

	//Read/access the value of the cell (B3)
	textBox1.Text = worksheet["B3"].Text;

I added
Syncfusion.XlsIO.Portable and Syncfusion.Compression.Portable to my netstandar 1.6 lib but I get this Severity Code Description Project File Line Suppression State

Error CS0012 The type 'Object' is defined in an assembly that is not referenced.
You must add a reference to assembly 'mscorlib, Version=, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.

Which assembly is? I use portable assemblies according https://help.syncfusion.com/file-formats/xlsio/assemblies-required


Mathu Mohan Vijayakumar [Syncfusion]
Replied On July 19, 2017 03:14 PM UTC

Hi josep, 
We are suspecting that the issue might be occurs due to missing package  "Microsoft.NETCore.Portable.Compatibilityin your project. This package enables the compatibility with portable libraries targeting previous .NET framework assemblies. So we kindly request you to install this package in your project and let us know whether the issue is resolved at your side. 
Package manager console command: 
install-package Microsoft.NETCore.Portable.Compatibility 
Mathu Mohan V A  

Replied On July 19, 2017 03:18 PM UTC

Thanks, It works now

Mathu Mohan Vijayakumar [Syncfusion]
Replied On July 20, 2017 06:18 AM UTC

Hi Josep, 
We are glad that the issue is resolved at your end. Please let us know if you need any further assistance. 
Mathu Mohan V A 


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

or the page will be automatically redirected to 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