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:
- Navigate to Monogame install location (C:\Program Files (x86)\MonoGame)
- Choose your version and open assemblies and desired project type (WindowsUniversal)
- 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.
- Remove all usage of Microsoft.Xna.Framework.Media.
- 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.