Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses unsupported API in UWP #108

Closed
andreasbalzer opened this issue Dec 8, 2020 · 18 comments
Closed

Uses unsupported API in UWP #108

andreasbalzer opened this issue Dec 8, 2020 · 18 comments
Labels
feature request API changes required in-prerelease API changes are in prerelease package for the milestone
Milestone

Comments

@andreasbalzer
Copy link

No description provided.

@andreasbalzer
Copy link
Author

Validating UWP packages using DryWetMidi to deploy applications to the store results in

FAILED
Supported APIs
Error Found: The supported APIs test detected the following errors:
API midiInAddBuffer in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInClose in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInGetDevCapsA in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInGetErrorTextA in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInGetNumDevs in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInOpen in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInPrepareHeader in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInReset in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInStart in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInStop in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiInUnprepareHeader in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutClose in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutGetDevCapsA in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutGetErrorTextA in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutGetNumDevs in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutGetVolume in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutLongMsg in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutOpen in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutPrepareHeader in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutSetVolume in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutShortMsg in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API midiOutUnprepareHeader in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API timeKillEvent in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
API timeSetEvent in winmm.dll is not supported for this application type. Coimbra.dll calls this API.
Impact if not fixed: Using an API that is not part of the Windows SDK for Microsoft Store apps violates the Microsoft Store certification requirements.
How to fix: Review the error messages to identify the API that is not part of the Windows SDK for Microsoft Store apps. Please note, apps that are built in a debug configuration or without .NET Native enabled (where applicable) can fail this test as these environments may pull in unsupported APIs. Retest your app in a release configuration, and with .NET Native enabled if applicable. See the link below for more information:
Alternatives to Windows APIs in Microsoft Store apps. http://go.microsoft.com/fwlink/?LinkID=244022

@melanchall melanchall added the feature request API changes required label Dec 8, 2020
@melanchall
Copy link
Owner

Hi, @andreasbalzer,

Thanks for the provided failure log. I'll try to provide UWP compatible package. But please be patient, it's not super quick task :)

@andreasbalzer andreasbalzer changed the title Uses unsupported Uses unsupported API in UWP Dec 10, 2020
@melanchall
Copy link
Owner

I'm going to dive into the task after 16 Dec after my vacation. From what I know I need to create developer account on Microsoft site to be able to validate package publishing. @andreasbalzer am I right?

@melanchall
Copy link
Owner

Well, I've created developer account and run validation to see the same failures. I'm going to implement the system within the library to automatically create UWP compatible package.

@melanchall melanchall added this to the Future milestone Mar 24, 2021
@daltzctr
Copy link

daltzctr commented Jul 8, 2022

Just was wondering on the progress on this? I think this dependency also is incompatible with .NET Native

@daltzctr
Copy link

daltzctr commented Jul 8, 2022

When compiling with .NET Native the following warnings are present and the application crashes on startup

1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'StartHighPrecisionTickGenerator_Mac' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.TickGeneratorApi.TG_STARTRESULT Melanchall.DryWetMidi.Multimedia.TickGeneratorApi32.StartHighPrecisionTickGenerator_Mac(System.Int32, System.IntPtr, Melanchall.DryWetMidi.Multimedia.TickGeneratorApi.TimerCallback_Mac, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'StartHighPrecisionTickGenerator_Mac' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.TickGeneratorApi.TG_STARTRESULT Melanchall.DryWetMidi.Multimedia.TickGeneratorApi64.StartHighPrecisionTickGenerator_Mac(System.Int32, System.IntPtr, Melanchall.DryWetMidi.Multimedia.TickGeneratorApi.TimerCallback_Mac, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'AreInputDevicesEqual' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'System.Boolean Melanchall.DryWetMidi.Multimedia.InputDeviceApi32.AreInputDevicesEqual(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenInputDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_OPENRESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi32.OpenInputDevice_Mac(System.IntPtr, System.IntPtr, Melanchall.DryWetMidi.Multimedia.InputDeviceApi.Callback_Mac, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetEventDataFromInputDevice' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_GETEVENTDATARESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi32.GetEventDataFromInputDevice(System.IntPtr, System.Int32, System.IntPtr, System.Int32)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetInputDeviceUniqueId' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi32.GetInputDeviceUniqueId(System.IntPtr, System.Int32)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetInputDeviceDriverOwner' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi32.GetInputDeviceDriverOwner(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'AreInputDevicesEqual' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'System.Boolean Melanchall.DryWetMidi.Multimedia.InputDeviceApi64.AreInputDevicesEqual(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenInputDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_OPENRESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi64.OpenInputDevice_Mac(System.IntPtr, System.IntPtr, Melanchall.DryWetMidi.Multimedia.InputDeviceApi.Callback_Mac, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetEventDataFromInputDevice' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_GETEVENTDATARESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi64.GetEventDataFromInputDevice(System.IntPtr, System.Int32, System.IntPtr, System.Int32)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetInputDeviceUniqueId' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi64.GetInputDeviceUniqueId(System.IntPtr, System.Int32)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetInputDeviceDriverOwner' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.InputDeviceApi.IN_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.InputDeviceApi64.GetInputDeviceDriverOwner(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'AreOutputDevicesEqual' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'System.Boolean Melanchall.DryWetMidi.Multimedia.OutputDeviceApi32.AreOutputDevicesEqual(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenOutputDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_OPENRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi32.OpenOutputDevice_Mac(System.IntPtr, System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'SendSysExEventToOutputDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_SENDSYSEXRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi32.SendSysExEventToOutputDevice_Mac(System.IntPtr, System.Byte[], System.UInt16)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetOutputDeviceUniqueId' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi32.GetOutputDeviceUniqueId(System.IntPtr, System.Int32)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetOutputDeviceDriverOwner' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi32.GetOutputDeviceDriverOwner(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'AreOutputDevicesEqual' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'System.Boolean Melanchall.DryWetMidi.Multimedia.OutputDeviceApi64.AreOutputDevicesEqual(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenOutputDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_OPENRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi64.OpenOutputDevice_Mac(System.IntPtr, System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'SendSysExEventToOutputDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_SENDSYSEXRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi64.SendSysExEventToOutputDevice_Mac(System.IntPtr, System.Byte[], System.UInt16)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetOutputDeviceUniqueId' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi64.GetOutputDeviceUniqueId(System.IntPtr, System.Int32)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetOutputDeviceDriverOwner' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.OutputDeviceApi.OUT_GETPROPERTYRESULT Melanchall.DryWetMidi.Multimedia.OutputDeviceApi64.GetOutputDeviceDriverOwner(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenSession_Mac' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi.SESSION_OPENRESULT Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi32.OpenSession_Mac(System.IntPtr, Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi.InputDeviceCallback, Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi.OutputDeviceCallback, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenSession_Mac' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi.SESSION_OPENRESULT Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi64.OpenSession_Mac(System.IntPtr, Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi.InputDeviceCallback, Melanchall.DryWetMidi.Multimedia.MidiDevicesSessionApi.OutputDeviceCallback, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenVirtualDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.VIRTUAL_OPENRESULT Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi32.OpenVirtualDevice_Mac(System.IntPtr, System.IntPtr, Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.Callback_Mac, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'CloseVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.VIRTUAL_CLOSERESULT Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi32.CloseVirtualDevice(System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'SendDataBackFromVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.VIRTUAL_SENDBACKRESULT Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi32.SendDataBackFromVirtualDevice(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetInputDeviceInfoFromVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'System.IntPtr Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi32.GetInputDeviceInfoFromVirtualDevice(System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetOutputDeviceInfoFromVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native32' specified by DllImport method 'System.IntPtr Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi32.GetOutputDeviceInfoFromVirtualDevice(System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'OpenVirtualDevice_Mac' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.VIRTUAL_OPENRESULT Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi64.OpenVirtualDevice_Mac(System.IntPtr, System.IntPtr, Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.Callback_Mac, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'CloseVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.VIRTUAL_CLOSERESULT Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi64.CloseVirtualDevice(System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'SendDataBackFromVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi.VIRTUAL_SENDBACKRESULT Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi64.SendDataBackFromVirtualDevice(System.IntPtr, System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetInputDeviceInfoFromVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'System.IntPtr Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi64.GetInputDeviceInfoFromVirtualDevice(System.IntPtr)'. Calling this method would throw exception at runtime.
1>C:\Users\XXXX\.nuget\packages\microsoft.net.native.compiler\2.2.12-rel-31116-00\tools\Microsoft.NetNative.targets(809,5): warning :       MCG : warning MCG0004: The method 'GetOutputDeviceInfoFromVirtualDevice' was not found in module 'Melanchall_DryWetMidi_Native64' specified by DllImport method 'System.IntPtr Melanchall.DryWetMidi.Multimedia.VirtualDeviceApi64.GetOutputDeviceInfoFromVirtualDevice(System.IntPtr)'. Calling this method would throw exception at runtime.

@daltzctr
Copy link

daltzctr commented Jul 8, 2022

Crash possibly related to
image

@daltzctr
Copy link

daltzctr commented Jul 8, 2022

I would be interested in a version of this library that does not include any hardware interfacing bits.

@melanchall
Copy link
Owner

@daltzctr Nothing done on UWP support, sorry. I'll think about a new package like Melanchall.DryWetMidi.Core which won't include any native parts.

@daltzctr
Copy link

daltzctr commented Jul 8, 2022

That would be absolutely awesome!

@daltzctr
Copy link

I took a quick attempt at building with the 6.1.2 prerelease that's based on the nativeless CI build, seems to still barf on the UWP app. Still trying to get some more verbose exceptions/messages out of this.

@daltzctr
Copy link

Looks like it fails on just loading the 32bit dll
image

@daltzctr
Copy link

Okay, awesome news. I downloaded the "Binaries" artifact from https://dev.azure.com/Melanchall/DryWetMIDI/_build/results?buildId=23676&view=artifacts&pathAsName=false&type=publishedArtifacts and used the netstandard2.0 build and it looks like my application is starting and working properly! This is awesome!

@melanchall
Copy link
Owner

@daltzctr Heh, you're faster then me :) Yes, you can use it, but it's not officially released yet, I'm still tweaking some parts to incorporate them propertly to the project structure. Thank you for checking that the package OK!

@melanchall
Copy link
Owner

@daltzctr Well, the Melanchall.DryWetMidi.Nativeless package created and the version 6.1.2-prerelease2 available on NuGet.

@melanchall melanchall added the in-prerelease API changes are in prerelease package for the milestone label Jul 28, 2022
@daltzctr
Copy link

All works for me!

@melanchall
Copy link
Owner

🚀 6.1.2 version is released now!

Prerelease NuGet packages will be unlisted soon, so please update the package references to the new version.

Thanks for using the library!

@melanchall
Copy link
Owner

Well, looks like UWP is almost dead nowadays. So I have no plans to proceed with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request API changes required in-prerelease API changes are in prerelease package for the milestone
Projects
None yet
Development

No branches or pull requests

3 participants