[英]WindowsAzure.Storage on not working on .Net Core 1.0
Experimenting with the new .Net Core 1.0 that was released yesterday. 尝试昨天发布的新的.Net Core 1.0。 I'm not able to get WindowsAzure.Storage library to work. 我无法让WindowsAzure.Storage库工作。 The compiler complains about multiple dependencies that don't support .NETCoreApp,Version=v1.0
. 编译器抱怨多个依赖项不支持.NETCoreApp,Version=v1.0
。
The dependency Microsoft.Data.Edm 5.6.4 does not support framework .NETStandard,Version=v1.5. 依赖项Microsoft.Data.Edm 5.6.4不支持框架.NETStandard,Version = v1.5。
The dependency Microsoft.Data.OData 5.6.4 does not support framework .NETStandard,Version=v1.5. 依赖项Microsoft.Data.OData 5.6.4不支持框架.NETStandard,Version = v1.5。
The dependency Microsoft.Data.Services.Client 5.6.4 does not support framework .NETStandard,Version=v1.5. 依赖项Microsoft.Data.Services.Client 5.6.4不支持框架.NETStandard,Version = v1.5。
The dependency System.Spatial 5.6.4 does not support framework .NETStandard,Version=v1.5. 依赖System.Spatial 5.6.4不支持框架.NETStandard,Version = v1.5。
Does this mean that the WindowsAzure.Storage SDK isn't ready for .Net Core 1.0 yet? 这是否意味着WindowsAzure.Storage SDK还没有为.Net Core 1.0做好准备了吗?
WindowsAzure.Storage supports .NET Standard, but its dependencies do not. WindowsAzure.Storage 支持 .NET Standard,但它的依赖关系不支持。 Microsoft.Data.OData and System.Spatial do not yet support .NET Standard. Microsoft.Data.OData和System.Spatial尚不支持.NET Standard。
The library source suggests adding the following imports
property to your frameworks
section in project.json: 库源建议将以下imports
属性添加到project.json中的frameworks
部分:
"imports": [
"dnxcore50",
"portable-net451+win8"
]
This will temporarily import the PCL profile that these packages should have existing support for. 这将临时导入这些包应该具有现有支持的PCL配置文件。
In newer csproj-based projects, the PackageTargetFallback
property accomplishes the same thing: 在较新的基于csproj的项目中, PackageTargetFallback
属性完成同样的事情:
<PropertyGroup>
<PackageTargetFallback>dnxcore50;portable-net451+win8</PackageTargetFallback>
</PropertyGroup>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.