سؤال

All I want is to use the ExifLib.dll in a Windows Phone 7.1 project. I tried to install the package from NuGet and I get a compatibility error:

Could not install package 'ExifLib 1.3.0.0'. You are trying to install this package into a project that targets 'Silverlight,Version=v4.0,Profile=WindowsPhone71', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I am using Visual Studio 2012. Why is this happening? Is there any compatibility issue, and if it is, how could it be resolved?

Thank you in advance.

هل كانت مفيدة؟

المحلول 2

Common ExifLib isn't compatible with Windows Phone. But you can read this article and try this library by Tim Heuer.

نصائح أخرى

ExifLib has just been updated to version 1.4, and it now works with Windows Phone - you'll need to use the new constructor overload which takes a Stream.

The NuGet package has also been updated to contain a Windows Phone compatible DLL.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top