PCL Libraries and Similar File.Exists Functions

Im new in the new version of Mono 4.2, and they are implementing new PCL libraries. My question is: is there a similar function, for example File.Exists, that works on PCL, and if I mix these libraries with the full ones, there will be a problem with the compatibility of this DLL in iOs. Thanks.

+6
source share
2 answers

The file system is handled differently in each operating system, so you will need to write code for a specific platform or use ready-made cross-platform plugins.

I suggest you take a look at the structure of MVVMCross for mobile development in general and, in particular, the MVVMCross File Plugin .

+3
source

You can use my PCL Storage library for cross-platform access to IO files. It does not have a separate method for checking for a file, but you can call IFolder.GetFileAsync and see if it throws a FileNotFoundException .

+5
source

All Articles