Today, I would like to use the Microsoft Azure Storage from .NetCore Application hosted on linux. The azure storage SDK is available on Github https://github.com/Azure/azure-storage-net and the readme indicate the targeted platforms :
Netstandard1.3 (CoreCLR RTM): Storage Client Libraries for .NET are available to support CoreCLR application development.
Ok ! so a nuget should be available for my project.
I’ve created a new .Net Core App console in my Visual studio, and then try to install the nuget package (7.2.1) :
It seems that there is a .NetStandard compatible version :
but after installing the nuget, I get the following errors :
Package XXX is not compatible with netcoreapp1.0
How to fix it? because the Github readme seems to explains that it could work on .NetCore.
I’ve done the same manipulation in a AspNet Core application and everything build successfully …
I’ve looked in the project.json and I’ve seen the difference.
In the project.json of the Console App :
In the project.json of the AspNet Core App :
So I’ve changed the import property to include dotnet5.6 and portable-net45+win8 and voila ! The project successfully load the nuget and compile.
After I’ve deployed the console app on a Linux and everything works fine !