- Notifications
You must be signed in to change notification settings - Fork496
Closed
Description
This issue wasreported by a customer.
- Use .NET 5 preview.
- Install
Microsoft.Azure.Devices.Client
Expectation
Stuff works.
Actuality
The customer gets an exception:
Unhandled exception. System.NotSupportedException: Specified method is not supported. at Microsoft.Azure.Devices.Client.Common.ReadOnlyMergeDictionary`2.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair>.get_Count()It seems the root cause is a fragile check in the MSBuild targets:
<PropertyGroup> <SupportsNetStandard20AndAboveCondition="'$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net472'">true</SupportsNetStandard20AndAbove> </PropertyGroup>
What are you trying to achieve by this method?