Azure-cosmos-dotnet-v2: Namespace Azure does not exist in Microsoft

Created on 19 Sep 2018  ·  6Comments  ·  Source: Azure/azure-cosmos-dotnet-v2

Hi folks,

I've got a netstandard2.0 project into which I've installed Microsoft.Azure.DocumentDB version 2.0 package into. I've copied over some code from an older version of the documentdb library. My using statements no longer seem to work, but I can see nowhere saying that this was changed. The samples still use this namespace, etc.

Any clue why I'm unable to use this library?

untitled

Most helpful comment

If you are working on NET Standard / NET Core, please use the Microsoft.Azure.DocumentDB.Core package.

All 6 comments

If you are working on NET Standard / NET Core, please use the Microsoft.Azure.DocumentDB.Core package.

This could _really really_ use a note in the README.

@TomasHubelbauer On the official documetation, NET and NET Core have separate articles, both pointing to their NuGets:

Yes, indeed, and it's so easy to miss, too, when you're reading the wrong one, hence my comment 🙂 I sunk a good half and hour into just that today. Should I have noticed? Yeah. Did I? No. Am I alone in this? 🤷‍♂️

Totally true! Just to weight where would be a better place. Did you land in Github first or did you hit the NET docs? Just to know whether a README or a note on the NET docs should be better.

The .NET docs I think, 90 %, that's where I landed from Google and I submitted a PR there adding a note to the .NET non-Core doc with a link to the .NET Core one (maybe we should do the other way as well?). README IMO should have at least a mention too, I went there when trying to find more info before I found this issue.

Was this page helpful?
0 / 5 - 0 ratings