Azure IoT Hub SDK for .NET now support .NET5 (Preview)

Published Apr 29 2021 09:51 AM 1,569 Views
Microsoft

We are pleased to announce the preview support of .NET5 into the Azure IoT Hub and DPS SDKs for .NET. With this preview you can now use .NET 5 and C# 9 with your project using the Azure IoT .NET SDKs.

To play with this preview, use the nuget package: NuGet Gallery | Microsoft.Azure.Devices.Client 1.38.0-preview-001 

 

With .NET 5, the .NET framework team introduced a new set of features. One of particular interest in our client library is the enhancement of async operations for System.Net.Http and Stream APIs. See this documentation for an explanation of working with cancellation tokens.

 

C# 9 introduces some very cool new language features such as record and pattern matching enhancement. Please test them in your projects using Azure IoT .NET SDKs and let us know if you find any issues using C#9 and Azure IoT SDKs. 

 

This .NET 5 support is now in preview, and it is a great time to try it and get us feedback. Don't hesitate to reach out to us and let us know if you have any issues, concerns, or suggestions.

 

Happy coding!

The .NET IoT SDK team

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2304609%22%20slang%3D%22en-US%22%3EAzure%20IoT%20Hub%20SDK%20for%20.NET%20now%20support%20.NET5%20(Preview)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2304609%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20pleased%20to%20announce%20the%20preview%20support%20of%20.NET5%20into%20the%20Azure%20IoT%20Hub%20and%20DPS%20SDKs%20for%20.NET.%20With%20this%20preview%20you%20can%20now%20use%20.NET%205%20and%20C%23%209%20with%20your%20project%20using%20the%20Azure%20IoT%20.NET%20SDKs.%3C%2FP%3E%0A%3CP%3ETo%20play%20with%20this%20preview%2C%20use%20the%20nuget%20package%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nuget.org%2Fpackages%2FMicrosoft.Azure.Devices.Client%2F1.38.0-preview-001%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENuGet%20Gallery%20%7C%20Microsoft.Azure.Devices.Client%201.38.0-preview-001%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20.NET%205%2C%20the%20.NET%20framework%20team%20introduced%20a%20new%20set%20of%20%3CA%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fannouncing-net-5-0%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efeatures%3C%2FA%3E.%20One%20of%20particular%20interest%20in%20our%20client%20library%20is%20the%20enhancement%20of%20async%20operations%20for%20System.Net.Http%20and%20Stream%20APIs.%20See%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fdotnet%2Fapi%2Fsystem.threading.cancellationtokensource%3Fview%3Dnet-5.0%23%3A~%3Atext%3DStarting%2520with%2520the%2520.NET%2520Framework%25204%252C%2520the%2520.NET%2CCancellationToken%2520object%252C%2520which%2520indicates%2520whether%2520cancellation%2520is%2520requested)%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%20%3C%2FA%3Efor%20an%20explanation%20of%20working%20with%20cancellation%20tokens.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22TextRun%20SCXW187516288%20BCX8%22%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22NormalTextRun%20CommentStart%20%20%20SCXW187516288%20BCX8%20CommentHighlightPipeRest%20CommentHighlightRest%22%3EC%23%209%20introduce%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Es%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Esome%20very%20cool%20new%20language%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Efeatures%20such%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eas%20record%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Epattern%20matching%20enhancement%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3EP%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Elease%20tes%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Et%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Ethem%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Ein%20your%20projects%20using%20Azure%20IoT%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E.NET%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3ESDK%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Es%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20let%20us%20know%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Eif%20you%20find%20any%20issues%20using%20C%239%20and%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3EAzure%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3EIoT%20SDK%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3Es%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20%20SCXW187516288%20BCX8%20CommentHighlightRest%22%3E.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22EOP%20%20SCXW187516288%20BCX8%20CommentHighlightPipeRest%22%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20.NET%205%20support%20is%20now%20in%20preview%2C%20and%20it%20is%20a%20great%20time%20to%20try%20it%20and%20get%20us%20feedback.%20Don't%20hesitate%20to%20reach%20out%20to%20us%20and%20let%20us%20know%20if%20you%20have%20any%20issues%2C%20concerns%2C%20or%20suggestions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHappy%20coding!%3C%2FP%3E%0A%3CP%3EThe%20.NET%20IoT%20SDK%20team%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2304609%22%20slang%3D%22en-US%22%3E%3CP%3ENET5%20in%20now%20supported%20(preview)%20in%20the%20Azure%20IoT%20Hub%20and%20DPS%20SDKs%20for%20.NET.%20With%20this%20preview%20you%20can%20now%20use%20.NET%205%20and%20C%23%209%20with%20your%20project%20using%20the%20Azure%20IoT%20.NET%20SDKs.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ericmitt_1-1619648689410.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276469i31F33A531ED2CE7E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ericmitt_1-1619648689410.png%22%20alt%3D%22ericmitt_1-1619648689410.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Jun 09 2021 04:03 PM
Updated by: