The SharpDX Iām using is from here:
What else options do I have?
The SharpDX Iām using is from here:
What else options do I have?
It isnāt that there are optionsā¦ it is that you might have made a mistake if you manually setup your code base.
If you used the MonoGame SDK installer or used Git to checkout the code and update submodules then things should be working as normal.
If you downloaded the code via zip or manually copied the SharpDX assemblies from that repoā¦ it is very possible you made a mistake and copied the wrong ones.
You can see hereā¦
https://github.com/mono/MonoGame/blob/develop/Build/Projects/FrameworkReferences.definition#L201
That the right ones for UWP are the ones from the SharpDX/Windows UAP
folder. If those are not the ones in your project then you might have the wrong ones.
I used the UWP project template from the MG SDK installer to setup my project, and the MG source and dependencies referenced in my project are checked out using GIT. There is no problem with building and running the game. In fact I only updated a few lines from the previously released version (in-game logic bug fix, nothing to do with SharpDX) and didnāt update MG source and dependencies library. When I submitted that update, it started to fail the certification again and again (even after I pulled all the changes in MG source and dependencies from GIT). I just want to know if I am the only one having this issueā¦
Iām also having the same problem that @greyp encountered.
I installed the Monogame 3.5 SDK using the installer only.
I tried to publish an app to the Windows Store yesterday and got the exact same problem.
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:
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.
I havenāt tried out this solution, and Iām not sure if it works with the MG sourceā¦ Not sure if this is something easy to fix properly (Iām not a MG developerā¦) >_<
I tried @Olander fix and it worked. The app passed certification.
It was easy because my app didnāt use anything from SharpDX.MediaFoundation.
My app doesnāt reference SharpDX.MediaFoundation either. It is the MG source that referenced it. If I mess with SharpDX.MediaFoundation, MG simply wonāt buildā¦
Hi @Tom, should we submit a ticket on GitHub regarding this issue? It seems to be a blocker for UWP developers using MGā¦
Yeahā¦ lets move this to GitHub.
I guess MS changed something in the certification process and now SharpDX.MediaFoundation
is illegal to use in a UWP app.
I will have to do some research to figure out what exactly is going on and how to correctly work around it.
Hmmā¦ weird, my project did not have any references to SharpDX.Mediafoundation except those that I myself added. Where does the compiler throw an error? Make sure that you do not delete either of the files, just clear their contents.
@Olander fix has worked for me, thank you so much.
Updating, the fix has not worked just five minutes ago MS Store has marked the app as Non compliant with same error
API MFCreateAggregateSource in mf.dll is not supported for this application type. SharpDX.MediaFoundation.dll calls this API.
API MFGetService in mf.dll is not supported for this application type. SharpDX.MediaFoundation.dll calls this API.
Hi @Olander can you explain what do you mean by āClear out everything from SharpDX.MediaFoundation.dllā, I have followed you instructions but not passed the certification process, what i do was open the SharpDX.MediaFoundation.dll in notepad++ select all and delete and the save the file, same for XML except āxml versionā line, and check that i donāt have any refs to āMicrosoft.Xna.Framework.Mediaā, is that what you made to pass the certification? if so, do you have any changes made to monogame to remove the references or are using the repository ones?
Thanks in advance.
Okay letās see. The SharpDX.MediaFoundation files:
Making sure that it did really work:
The trick lies in making sure that you choose the correct MonoGame version as well as the correct project type.
Weāve got someone at Microsoft asking the relevant people about this issue.
Thank you so much @Olander tomorrow iām going to test and let you know if works. because after opening an issue in the MS Developer Support, they have answered me just today, the response has been so deplorable that I doubt even they have read the email, If some one is interested they only sent a link to: https://msdn.microsoft.com /library/windows/apps/hh464945.aspx
Brian Peek from Microsoft responds that
this is a known issue with the Store submission process right now. If you work with the submission folks, they will grant you an exception until the issue is properly fixed. No need to change your code/MonoGame/anything else. Hope that helps.
Hope it doesnāt take long to get fixed!
I can confirm that following @Olander fix I get my app published to the store, hope they fix soon.