Reputation: 9526
I'm trying to build .NET Core Class library that works with Azure Storage. Seems like the current version of WindowsAzure.Storage and it's dependencies require a full .net framework
Upvotes: 1
Views: 876
Reputation: 2645
It works (and I've been using it) with version 7.0.2 preview ( as noted by @GauravMantri in previous answer). You do need to make some adjustments to the imports section of the project.json. Use this an example that works:
{
"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"
]
}
}
}
Upvotes: 2
Reputation: 136306
Looking at the change log for the storage client library, you need to use version 7.0.2 which is currently in preview. From the change log page:
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
You can download this version from Nuget: https://www.nuget.org/packages/WindowsAzure.Storage/7.0.2-preview
Upvotes: 1