question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Namespace clash with Microsoft.Azure.Cosmos.Table

See original GitHub issue

Describe the bug I’ve a project that references both Microsoft.Azure.Cosmos 3.0.0.9-preview and StreamStone 2.3.0 which in turn has a reference to Microsoft.Azure.Cosmos.Table 1.0.0.0.

One error I encountered is as follows The type 'IndexingMode' exists in both 'Microsoft.Azure.Cosmos.Direct, Version=3.0.0.9, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'Microsoft.Azure.Cosmos.Table, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' (CS0433) [deleteme]

This also begs the question, what’s the direction for CosmosDb .NET SDK going forward? Will it be consolidated into Microsoft.Azure.Cosmos or will it be broken down into multiple parts? (core/direct?, document/sql, mongo api, cassandra api, table api, gremlin api)?

To Reproduce

  1. dotnet new xunit
  2. dotnet add package Microsoft.Azure.Cosmos -v 3.0.0.9-preview
  3. dotnet add package StreamStone -v 2.3.0
  4. use code below
using System;
using Xunit;
using Microsoft.Azure.Cosmos;

namespace deleteme
{
    public class UnitTest1
    {
        [Fact]
        public void Test1()
        {
            var x = new IndexingPolicy
            {
                IncludedPaths = { new IncludedPath{Path=""}},
                IndexingMode = Microsoft.Azure.Cosmos.IndexingMode.Lazy // uh, oh
            };
        }
    }
}

Environment summary SDK Version: 2.2.505 MacOS Mojave

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
PaulChengcommented, Apr 13, 2020

There is no need to update existing storage account or cosmosdb table account. Emulator will continue working as well.

1reaction
donghexucommented, Apr 9, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.Azure.Cosmos.Table Namespace
Represents the clientConfiguration used for Azure Cosmos Table service, associated with CloudTableClient to connect to the Azure Cosmos table service.
Read more >
Conflict Class (Microsoft.Azure.Documents)
This is the conflicting resource resulting from a concurrent async operation in the Azure Cosmos DB service.
Read more >
Azure.Cosmos Namespace - Azure for .NET Developers
Represents the conflict resolution policy configuration for specifying how to resolve conflicts in case writes from different regions result in conflicts on ...
Read more >
Conflicts Class (Microsoft.Azure.Cosmos)
Operations for reading/querying conflicts in a Azure Cosmos container. ... Namespace: Microsoft.Azure.Cosmos. Assembly: Microsoft.Azure.Cosmos.Client.dll.
Read more >
Container.Conflicts Property (Microsoft.Azure.Cosmos)
Returns the conflicts.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found