Failing Windows App Certification Kit

My app is not passing Windows App Certification with the error posted below. My build configuration is set to Master. It is complaining about the following two assemblies:

avpromoviecapture.dll has WSAPlayer unchecked in it’s inspector, so apparently it’s still being included in the build. Shouldn’t it be totally ignored? Is it a Unity bug?

appleexportmac.dll does not even exist in my project. It is AppleExportMac.bundle but that is obviously targeted for Mac and has WSAPlayer unchecked in it’s inspector.

Here’s the full error output:
API ConfigureAudioCodec in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.

  • API ConfigureVideoCodec in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API CreateRecorderAVI in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API CreateRecorderPipe in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API Deinit in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API EncodeAudio in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API EncodeFrame in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API EncodeFrameWithAudio in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API FreeRecorder in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetAVIAudioCodecName in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetAVIAudioInputDeviceName in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetAVIVideoCodecName in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetEncodedSeconds in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetFreeResourcesEventFunc in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetNumAVIAudioCodecs in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetNumAVIAudioInputDevices in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetNumAVIVideoCodecs in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetNumDroppedEncoderFrames in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetNumDroppedFrames in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetNumEncodedFrames in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetPluginVersion in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API GetRenderEventFunc in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API Init in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API IsConfigureAudioCodecSupported in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API IsConfigureVideoCodecSupported in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API IsNewFrameDue in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API IsTrialVersion in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API Pause in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API SetTexturePointer in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API Start in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API Stop in avpromoviecapture.dll is not supported for this application type. Assembly-CSharp-firstpass.dll calls this API.
  • API AE_AppendFrame in appleexportmac.dll is not supported for this application type. Assembly-CSharp.dll calls this API.
  • API AE_StartExporting in appleexportmac.dll is not supported for this application type. Assembly-CSharp.dll calls this API.
  • API AE_StopExport in appleexportmac.dll is not supported for this application type. Assembly-CSharp.dll calls this API.

I fixed it. The problem was that I had cs scripts with DLLImport referencing those dll’s. Once I inserted #if !NETFX_CORE around the DLLImport statements, the errors went away.