Using custom .dll file produces Unable to resolve reference 'Windows.Foundation.UniversalApiContract

I’m currently developing a Unity app for the Hololens 2. Here I want to send data to the Hololens through Bluetooth. To do this I have made a small Bluetooth library and compiled this into a .dll file. I then tried to import this .dll file into my assets, but multiple errors occur:

Unable to resolve reference ‘Windows.Foundation.UniversalApiContract’. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference ‘Windows.Foundation.FoundationContract’. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference ‘System.Runtime.WindowsRuntime’. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

I have updated the SDK version and have targeted the newest all around, but the error persists. Any help would be appreciated.

1 Like

I am facing the same issue. Please let me know if you could ever overcome this

Likewise. Any help would be awesome.

That sounds like you configured that DLL to be enabled for the editor, instead of just for UWP.