EPPlus Compatibility with Windows 10 Universal App

Sep 15, 2015 at 7:24 AM

I am trying to use EPPlus in an Windows 10 Universal App. However, it seems the FileInfo class cannot be used to create the pacakge. For example, I am using:

FileInfo newFile = new FileInfo("...");

using (ExcelPackage package = new ExcelPackage(newFile))

{ ... }

Visual Studio 2015 prompts an error saying "Reference to type 'FileInfo' claims it is defined in 'mscorlib', but it could not be found".

I guess it is caused by the big difference between traditional .net framework / Win32 and the new universal platform. Any suggestion to overcome this?