Requiring references to dependency after upgrading to preview8 SDK
See original GitHub issueSource code: https://github.com/dotnet/efcore/
We use Microsoft.Azure.Cosmos version 3.12.0 in one of our package we ship. It was building fine with preview7 SDK. When we upgraded to preview8 SDK, we started getting compile time error.
CSC : error CS0012: The type ‘PartitionKeyInternal’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘Microsoft.Azure.Cosmos.Direct, Version=3.11.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’. [D:\code\efcore\src\EFCore.Cosmos\EFCore.Cosmos.csproj]
Looking at the package Microsoft.Azure.Cosmos.Direct
it is implementation detail of Microsoft.Azure.Cosmos
and not supposed to be consumed directly. Further, we are not using PartitionKeyInternal
type in our project at all.
After adding dependency to Cosmos.Direct manually, everything works correctly. But it should not be needed. Any pointers?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:18 (3 by maintainers)
I had the same problem after updating to VS 16.8.0. Is this a problem with the compiler?
I also got the same problem after upgrading to VS 16.8.1. The problem was fixed when I updated the
Microsoft.Azure.Cosmos
package to version3.15.1-preview