Store Certification issues regarding SharpDX.MediaFoundation

I bypassed this error by clearing out both the SharpDX.MediaFoundation.dll and SharpDX.MediaFoundation.xml. This makes all classes used by Microsoft.Xna.Framework.Media unusable, but now the app passed certification.

How I did it:

  1. Navigate to Monogame install location (C:\Program Files (x86)\MonoGame)
  2. Choose your version and open assemblies and desired project type (WindowsUniversal)
  3. Find the SharpDX.MediaFoundation.dll and SharpDX.MediaFoundation.xml and open the in notepad. Clear out everything from SharpDX.MediaFoundation.dll and leave <?xml version="1.0"?> in the xml.
  4. Remove all usage of Microsoft.Xna.Framework.Media.
  5. Publish again.

Note that trying to use any of the classes in Microsoft.Xna.Framework.Media will result in an exception. Instead of using Song use SoundEffectInstance etc. These were the only changes I made and it didn’t affect the user experience in any way.

2 Likes