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
close icon

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

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


3 Replies

MM Mathu Mohan Vijayakumar Syncfusion Team 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  

JO Josep July 19, 2017 03:18 PM UTC

Thanks, It works now

MM Mathu Mohan Vijayakumar Syncfusion Team 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 

Live Chat Icon For mobile
Up arrow icon