Azure / azure-cosmos-dotnet-v2

Contains samples and utilities relating to the Azure Cosmos DB .NET SDK
MIT License
579 stars 837 forks source link

Cannot install via nuget in UWP apps #50

Open michaeldaw opened 9 years ago

michaeldaw commented 9 years ago

Output from nuget: Microsoft.Azure.DocumentDB 1.4.1 is not compatible with UAP,Version=v10.0 (win10-x86).

ghost commented 9 years ago

This is a known limitation with the current .NET SDK.

For now the only way to use DocumentDB with a UAP is to proxy through a middle-tier you host, or use something like Azure Mobile Services.

Otherwise, we have the JavaScript client SDK that you could use. (this still requires a middle tier of some sort to generate resource tokens b/c using the master key in an app on a device you distribute is definitely not recommended)

runarj commented 8 years ago

I might have misunderstood, but with the NET SDK 1.7.0 release I can create a Portable Class Library project and reference it from a Universal Windows project. Wouldn't this make it possible to use the DocumentDB library from a UWP app?

arramac commented 7 years ago

With the newly announced .NET Core SDK (https://docs.microsoft.com/en-us/azure/documentdb/documentdb-sdk-dotnet-core), you can target UWP apps.

rnagpal commented 7 years ago

Reopened since UWP apps require .net standard 1.4 while the the .NET Core SDK that we released targets ?net standard 1.6

ghost commented 7 years ago

Same problem, what is solution?

rnagpal commented 7 years ago

We plan to support UWP in a later release since we now target .NET Standard 1.6 only.

MarekLani commented 7 years ago

And Microsoft wants developers to develop for UWP... more than 1.5 year since opening of this thread and the solution is still in distant undetermined future.

ghost commented 7 years ago

@MarekLani It is really very sad that they did not bring up such tool on their platform after a long time

dalyIsaac commented 7 years ago

+1

rdeveen commented 7 years ago

This version has support for UWP: https://github.com/Azure/azure-documentdb-dotnet/blob/master/Microsoft.Azure.DocumentDB.Core.1.4.0-preview.nupkg

MarcBrad commented 6 years ago

For anyone sill having problems with this. (https://stackoverflow.com/questions/47496158/the-type-or-namespace-name-azure-does-not-exist-in-the-namespace-microsoft)