简体   繁体   English

WindowsAzure.Storage没有使用.Net Core 1.0

[英]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.

相关问题 在 C# .NET Core 中使用 Azure TableStorage - Nuget Package WindowsAzure.Storage Alternative - Using Azure TableStorage in C# .NET Core - Nuget Package WindowsAzure.Storage Alternative WindowsAzure.Storage使用C#mono - WindowsAzure.Storage using C# mono ExecuteQuery WindowsAzure.Storage 5.0.3没有扩展方法 - ExecuteQuery WindowsAzure.Storage 5.0.3 no extension method WindowsAzure.Storage,版本= 9.3.0.0-异常无法加载文件或程序集 - WindowsAzure.Storage, Version=9.3.0.0 - exception could not load file or assembly 如何在Visual Studio 2013中安装WindowsAzure.Storage? - How do I install WindowsAzure.Storage in Visual Studio 2013? 将WindowsAzure.Storage安装到针对Xamarin平台的PCL - Install WindowsAzure.Storage to PCL targeting Xamarin platforms 我应该使用哪个版本的WindowsAzure.Storage? - Which version of WindowsAzure.Storage should I use? 共享访问从 windowsazure.storage 移动到 Azure.Storage.Files - Shared Access moving from windowsazure.storage to Azure.Storage.Files 从 WindowsAzure.Storage 迁移到 Azure.Storage 包时从 CloudStorageAccount 引用服务 - Referencing services from CloudStorageAccount when migrating from WindowsAzure.Storage to Azure.Storage packages WebApi Soln具有多个项目,每个项目都有不同的WindowsAzure.Storage版本参考 - WebApi Soln with multiple projects each having different windowsAzure.Storage version reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM