-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Our application cannot be built in release when we add Microsoft.Toolkit.Uwp 1.5. We have visual studio 2015 and are targeting Windows 10 Anniversary.
The problem seems to come from BluetoothLEHelper that uses BluetoothAdapter that targets Windows 10 Creators Update.
Errors :
error : ILT0021: Could not resolve method 'Windows.Foundation.IAsyncOperation<$ILT$FakeType1_Windows_Devices_Bluetooth_GenericAttributeProfile_GattDeviceServicesResult> Windows.Devices.Bluetooth.BluetoothLEDevice.GetGattServicesAsync(Windows.Devices.Bluetooth.BluetoothCacheMode)'
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Type 'Windows.Devices.Bluetooth.BluetoothAdapter' was not included in compilation, but was referenced in type 'Microsoft.Toolkit.Uwp.BluetoothLEHelper'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Type 'Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceServicesResult' was not included in compilation, but was referenced in type 'Microsoft.Toolkit.Uwp.ObservableBluetoothLEDevice'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Type 'Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicsResult' was not included in compilation, but was referenced in method 'ObservableGattDeviceService.b__21_0()'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Method 'BluetoothLEHelper.IsPeripheralRoleSupported.get()' will always throw an exception due to the missing method 'BluetoothAdapter.get_IsPeripheralRoleSupported()'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Method 'BluetoothLEHelper.IsCentralRoleSupported.get()' will always throw an exception due to the missing method 'BluetoothAdapter.get_IsCentralRoleSupported()'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Type 'Windows.Devices.Bluetooth.GenericAttributeProfile.GattProtocolError' was not included in compilation, but was referenced in method 'GattProtocolErrorParser.GetErrorString(Nullable)'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Method 'GattProtocolErrorParser.GetErrorString(Nullable)' will always throw an exception due to the missing method 'GattProtocolError.get_AttributeNotFound()'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Method 'BluetoothLEHelper.d__27.MoveNext()' will always throw an exception due to the missing method 'BluetoothAdapter.GetDefaultAsync()'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Method 'ObservableBluetoothLEDevice.<b__42_0>d.MoveNext()' will always throw an exception due to the missing method 'GattDeviceServicesResult.get_Status()'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Method 'ObservableGattDeviceService.d__21.MoveNext()' will always throw an exception due to the missing method 'GattCharacteristicsResult.get_Status()'. There may have been a missing assembly.
21>C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Type 'Windows.UI.Text.TextDecorations' was not included in compilation, but was referenced in method 'XamlRenderer.RenderStrikethroughRun(InlineCollection, StrikethroughTextInline, XamlRenderer.RenderContext)'. There may have been a missing assembly.