-
Notifications
You must be signed in to change notification settings - Fork 492
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
System.NotSupportedException: Specified method is not supported on .NET5.0 RC1 #1562
Comments
Our device client library currently only supports netstandard2.1, netstandard2.0, net472, and net451. We'll consider this a feature request, though |
Thanks for the response. I believe there is going to be so much confusion moving forward... Someone installs .NET5.0 and follows lab steps:
It is especially confusing given that:
|
That is not how you should design packages. Packages should always be built with forward compatibility in mind. For examle, when your package is built for We designed <PropertyGroup>
<SupportsNetStandard20AndAbove Condition="'$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net472'">true</SupportsNetStandard20AndAbove>
</PropertyGroup> What are you trying to achieve by this method? Maybe there is less fragile way to do that. |
Your point is valid, this expression in our csproj files is used to manage the library's cross-tfm dependencies; but I agree, we will update it to be forward compatible (a reversal of the expression should take care of that for us). |
This fix has now been released: https://github.com/Azure/azure-iot-sdk-csharp/releases/tag/2020-10-8 |
@timtay-microsoft, @darenm, @terrajobst, @abhipsaMisra, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
Hi, I am using .NET6.0 and facing the same issue with ModuleTwin as mentioned above. |
Context
Description of the issue
A console application was created with
dotnet new console
and targetednet5.0
. When sending an eventawait deviceClient.SendEventAsync(message);
, the following exception is thrownSystem.NotSupportedException: Specified method is not supported
. Changing the console target tonetcoreapp3.1
results in a successful execution.Code sample exhibiting the issue
Console log of the issue
The text was updated successfully, but these errors were encountered: