Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.37k stars 4.79k forks source link

Azure.Core 1.44.1 with bug on Dependency System.Memory.Data 6.0.0 for instruction BinaryData.Empty.ToString() #46734

Open Riccardonewall1985 opened 14 hours ago

Riccardonewall1985 commented 14 hours ago

Unable to use NuGet package Azure.Core 1.44.1 with Dependency System.Memory.Data 6.0.0 on .NET 8 Application. The previous version Azure.Core 1.43.0 with Dependency System.Memory.Data 1.0.2 is working well.

Suggestion: Update Dependency System.Memory.Data to version 8.0.1 for Azure.Core 1.44.1 NuGet package.

Steps to reproduce the bug: Create a console app with .NET 8 Install NuGet package Azure.Core 1.44.1 (with Dependency System.Memory.Data 6.0.0) Write this code line: string data = BinaryData.Empty.ToString(); Run... You get: System.ArgumentNullException: 'Value cannot be null. (Parameter 'bytes')'

github-actions[bot] commented 14 hours ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

annelo-msft commented 14 hours ago

@m-redding, would it be possible to help understand this issue and advise? Is the reported exception one of the known issues for BinaryData, and do we have a good workaround? Thanks!

m-redding commented 14 hours ago

This is a duplicate of https://github.com/Azure/azure-sdk-for-net/issues/46444, you can look at the discussion there for more information. This is unfortunately a bug in the System.Memory.Data package, not Azure.Core. You can add a direct reference in your application to hoist the package to 8.0.1 and it will fix this problem

github-actions[bot] commented 14 hours ago

Hi @Riccardonewall1985. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.