question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Query] Microsoft.Azure.Storage.Blob dependencies are not netstandard2.0 compatible

See original GitHub issue

Query/Question When attempting to use Microsoft.Azure.Storage.Blob one of the dependencies is Microsoft.Azure.KeyVault.Core 1.0.0 but is not built for netstandard2.0. Do I need to worry about these warnings in my project?

Warning NU1701 Package ‘Microsoft.Azure.KeyVault.Core 1.0.0’ was restored using ‘.NETFramework,Version=v4.6.1’ instead of the project target framework ‘.NETStandard,Version=v2.0’. This package may not be fully compatible with your project.

Can Microsoft.Azure.KeyVault.Core please be compiled for netstandard2.0 to reduce the dependency warnings & issues?

Why is this not a Bug or a feature Request? This could be an oversight (bug) or it could be a feature request (compile for netstandard2.0) but I’m just asking the question.

Setup (please complete the following information if applicable):

  • OS: Windows 10
  • IDE : Visual Studio 2019
  • Microsoft.Azure.Storage.Blob: v9.4.2
  • Microsoft.Azure.KeyVault.Core: v3.0.3

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [] Query Added
  • [] Setup information Added

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
schaabscommented, Apr 5, 2019

@AgSync-Aaron Thanks for reaching with your question. First to answer your question about the warnings, these are benign. Microsoft.Azure.KeyVault.Core only contains two interfaces and will work on netcore or desktop. See, https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.keyvault.core?view=azure-dotnet. Also, while I agree that your project level fix feels ‘not right’ it is also benign as these interfaces haven’t changed since 1.0.0. In fact the only changes we’ve made to this package are in the targeted frameworks. (This is most likely why Microsoft.Azure.Storage.Blob hasn’t rev’d it’s dependency on 1.0.0)

That being said I agree that this issue is confusing and causes doubt about whether the developer is doing the right thing, or whether it will work at run time, so I think we should consider reving Microsoft.Azure.Storage.Blob’s dependency to a version of Microsoft.Azure.KeyVault.Core to a version which targets netstandard.

0reactions
AgSync-Aaroncommented, Apr 6, 2019

Amazing this just came out today just a couple hours ago… https://www.nuget.org/packages/Microsoft.Azure.Storage.Blob/10.0.0

makes life simpler now. Had to go to net452 from net45 but that works for me.

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>net452;netstandard1.5;netstandard2.0</TargetFrameworks>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.Storage.Blob" Version="10.0.0" />
    <PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
  </ItemGroup>

</Project>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Referencing .NET 4.7.1 library using Azure Storage from ...
So I have tried to fixed this by installing the Azure Storage (v8.7.0) package which matches the version installed in the library I...
Read more >
Azure.Storage.Blobs 12.17.0
Azure Blob storage is Microsoft's object storage solution for the cloud. Blob storage is optimized for storing massive amounts of unstructured data.
Read more >
Quickstart: Azure Blob Storage client library for .NET
In Solution Explorer, right-click the Dependencies node of your project. Select Manage NuGet Packages. In the resulting window, search for Azure ...
Read more >
Azure Functions C# script (.csx) developer reference
The following example code creates a Storage blob output binding with blob path that's defined at run time, then writes a string to...
Read more >
.Net Framework 4.8, Azure.Storage.Blobs 12.8.0 ...
Net Framework 4.8 is my target platform (WinForms). I created a .Net Framework 4.8 unit test project, to isolate the code. C# project....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found