是否有适用于 .NETStandard 1.5 的 Azure 存储库?
Is there Azure Storage library that works with .NETStandard 1.5?
我正在尝试构建适用于 Azure 存储的 .NET Core Class 库。似乎是 WindowsAzure.Storage 的当前版本,它的依赖项需要完整的 .net 框架
查看 change log for the storage client library,您需要使用目前处于预览状态的版本 7.0.2。来自更改日志页面:
Changes in 7.0.2-preview :
- Blobs (WinRT): Fixed a bug that caused DownloadToFile() to infinite loop for one overload.
- All : CoreCLR projects were updated to use the RC2 release of .Net Core 1.0
您可以从 Nuget 下载此版本:https://www.nuget.org/packages/WindowsAzure.Storage/7.0.2-preview
它适用于(我一直在使用它)7.0.2 预览版(正如@GauravMantri 在之前的回答中指出的那样)。您确实需要对 project.json 的导入部分进行一些调整。使用这个有效的示例:
{
"version": "1.0.0-*",
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"WindowsAzure.Storage": "7.0.2-preview"
},
"frameworks": {
"netstandard1.5": {
"imports": [
"portable-net45+wp80+win8+wpa81+dnxcore50",
"portable-net451+win8"
]
}
}
}
我正在尝试构建适用于 Azure 存储的 .NET Core Class 库。似乎是 WindowsAzure.Storage 的当前版本,它的依赖项需要完整的 .net 框架
查看 change log for the storage client library,您需要使用目前处于预览状态的版本 7.0.2。来自更改日志页面:
Changes in 7.0.2-preview :
- Blobs (WinRT): Fixed a bug that caused DownloadToFile() to infinite loop for one overload.
- All : CoreCLR projects were updated to use the RC2 release of .Net Core 1.0
您可以从 Nuget 下载此版本:https://www.nuget.org/packages/WindowsAzure.Storage/7.0.2-preview
它适用于(我一直在使用它)7.0.2 预览版(正如@GauravMantri 在之前的回答中指出的那样)。您确实需要对 project.json 的导入部分进行一些调整。使用这个有效的示例:
{
"version": "1.0.0-*",
"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"WindowsAzure.Storage": "7.0.2-preview"
},
"frameworks": {
"netstandard1.5": {
"imports": [
"portable-net45+wp80+win8+wpa81+dnxcore50",
"portable-net451+win8"
]
}
}
}