nuget - how to install Microsoft.Azure.DocumentDB.Core on portable library -


i error installing documentdb nuget package.

could not install package 'microsoft.azure.documentdb.core 1.2.1'. trying install package project targets '.netportable,version=v4.5,profile=profile7', package not contain assembly references or content files compatible framework.

any ideas? in advance.

the core package targets netstandard 1.6, not .net core specifically.

netstandard library acts api different runtimes , it's more powerfull pcl because it's platform-agnostic:

netstandard compatibility chart

this means documentdb.core package can run on .net core 1.0, .net framework, xamarin , uwp.

if creating pcl, recommend create netstandard library instead.

it let library support wider universe of platforms , great thing that, if new platform comes along supports netstandard 1.6 (for example), library work without needing recompile or republish it.


Comments