3

Closed

Do not use restricted XNA APIs (e.g. MediaLibrary) to allow use in background agent on Windows Phone

description

The "Marketplace test kit" in Visual Studio fails when referencing the library in the background agent or one of its referenced assemblies
[ERROR] : Unsupported API cannot be used by a background agent. Assembly WriteableBitmapExWinPhone.dll was trying to use Microsoft.Xna.Framework.Media.MediaLibrary::.ctor.
 
Split the features requiring access to the MediaLibrary in a separate DLL.
Closed by

comments

kalus wrote Dec 6, 2011 at 2:29 PM

Supporting this. I already got a review from a user wondering why my app needs access to the media library and the camera (which it doesn't).

At the moment I cannot use the NuGet package but had to use the source code and manually remove WriteableBitmapWindowsPhoneExtensions.cs and the reference to Microsoft.Xna.Framework.

teichgraf wrote Dec 6, 2011 at 3:09 PM

I will fix it ASAP. Sorry if this affects your app reviews negatively.

kalus wrote Dec 6, 2011 at 9:00 PM

Wow, great, that was quick! Thanks! A fantastic library by the way :)

dotsad wrote Dec 8, 2011 at 2:10 AM

Thank you!