Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Microsoft.Azure.Devices.Client incorrectly determines .NET Standard support #1592

Closed
Assignees
azabbasi
Labels
IoTSDKTracks all IoT SDK issues across the boardbugSomething isn't working.fix-checked-inFix checked into main or preview, but not yet released.
@terrajobst

Description

@terrajobst

This issue wasreported by a customer.

  1. Use .NET 5 preview.
  2. InstallMicrosoft.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?

Metadata

Metadata

Assignees

Labels

IoTSDKTracks all IoT SDK issues across the boardbugSomething isn't working.fix-checked-inFix checked into main or preview, but not yet released.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp