Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange invisibility of Microsoft.Azure namespace with Microsoft.Azure.DocumentDB nuget #885

Open
pkar70 opened this issue Jan 10, 2022 · 4 comments

Comments

@pkar70
Copy link

pkar70 commented Jan 10, 2022

Describe the bug

I added Nuget Microsoft.Azure.DocumentDB to my project in VStudio. DocumentDB, not CosmosDB, because I want this project to run on Microsoft Windows 10, on Lumia 532 (Win10 v15063).
But Microsoft.Azure is not available; IntelliSense says that type is undefined; when I try to write methods with full namespace, Microsoft., and no Azure is available for completion. I tried same project in VStudio 2017, VStudio 2019, VStudio 2022.
Two nugets: Microsoft.Azure.DocumentDB and Microsoft.Azure.DocumentDB.Core, both in version 2.16.2.

To Reproduce

Expected behavior

Namespace Microsoft.Azure should be visible.

Actual behavior

Environment summary

Microsoft Windows [Version 10.0.19044.1415]
VStudio version 17.0.4, same problem with 15.9.41, and 16.11.8.
UWP app project.
Microsoft.Azure.DocumentDB.Core, both in version 2.16.2
Microsoft.Azure.DocumentDB, both in version 2.16.2

Additional context

@j82w
Copy link
Contributor

j82w commented Jan 14, 2022

@pkar70 what is the reason you can't use the v3 SDK? The v2 has been marked for deprecation.

nuget: https://www.nuget.org/packages/Microsoft.Azure.Cosmos/
github: https://github.com/Azure/azure-cosmos-dotnet-v3

@pkar70
Copy link
Author

pkar70 commented Jan 16, 2022

As I wrote, "I want this project to run on Microsoft Windows 10, on Lumia 532 (Win10 v15063)", and v3 SDK fails to be added to such project (with min target version 15063).

@j82w
Copy link
Contributor

j82w commented Jan 18, 2022

The Cosmos DB .NET v3 SDK targets .NET standard 2.0. Based on the following thread it seems that version of Windows does not support .NET standard 2.0. https://developercommunity.visualstudio.com/t/uwp-uap10015063-not-compatible-with-net-standard-2/93522

What version of .NET are you targeting? .NET Framework 4.8? .NET Core 3.1?
Microsoft.Azure.DocumentDB is used with .NET framework.
Microsoft.Azure.DocumentDB.Core is .NET standard 1.5 and 1.6 complaint. Supported version of .NET: https://docs.microsoft.com/en-us/dotnet/standard/net-standard

@pkar70
Copy link
Author

pkar70 commented Jan 18, 2022

Visual Studio added Microsoft.Azure.DocumentDB.Core nuget without any problem.
But it don't adds Microsoft.Azure.Cosmos nuget: NU1202: Package Microsoft.Azure.Cosmos 3.0.0 is not compatible with uap10.0.15063 (UAP,Version=v10.0.15063) / win10-x86-aot. Package Microsoft.Azure.Cosmos 3.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)

In UWP project, standard reference is to Microsoft.NETCore.UniversalWindowsPlatform, current version 6.2.13.

But when I try to use something from Microsoft.Azure namespace, it is not visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants