WindowsAzure.Storage does not work on .Net Core 1.0

Experimenting with the new .Net Core 1.0 released yesterday. I can not get the WindowsAzure.Storage library to work. The compiler complains about several dependencies that do not support .NETCoreApp,Version=v1.0 .

Dependency Microsoft.Data.Edm 5.6.4 does not support the .NETStandard structure, Version = v1.5.

Dependency Microsoft.Data.OData 5.6.4 does not support the .NETStandard structure, Version = v1.5.

The Microsoft.Data.Services.Client 5.6.4 dependency does not support the .NETStandard structure, Version = v1.5.

The System.Spatial 5.6.4 dependency does not support the .NETStandard structure, Version = v1.5.

Does this mean that the WindowsAzure.Storage SDK is not ready for .NET Core 1.0 yet?

+6
source share
1 answer

WindowsAzure.Storage supports .NET Standard, but there are no dependencies. Microsoft.Data.OData and System.Spatial do not yet support .NET Standard.

The source suggests adding the following imports property to your frameworks section in the project.json file:

 "imports": [ "dnxcore50", "portable-net451+win8" ] 

This temporarily imports the PCL profile in which these packages must have existing support.

In new csproj-based projects, the PackageTargetFallback property does the same:

 <PropertyGroup> <PackageTargetFallback>dnxcore50;portable-net451+win8</PackageTargetFallback> </PropertyGroup> 
+11
source

All Articles