I wonder how is it possible to integrate the ConfluentKafka NuGet in a .net standard 2.1 proj?
In the description at nuget.org, it seems that it can run when projects' target framework is up to .net standard 2.0 / .net core 2.1. Practically I've seen it in use in examples online and also when I use Kafka event as a trigger to an Azure Function - which is possible only when the framework is .net core 3.1.
As I understand from this table, .net core 2.1 is still standard 2.0.

CodePudding user response:
As per the comment by madreflection, the issue got resolved:
The package requires .NET Standard 2.0 as a minimum amount of functionality available to it. If you wanted to use it on .NET Core 1.1, for example, you couldn't because that runtime doesn't implement .NET Standard 2.0. But .NET Core 2.1 implements the .NET Standard 2.0 public API, so do .NET Core 3.0, 3.1, and now .NET 5 and 6 (which also implement .NET Standard 2.1), so a new project that targets a newer runtime can use a package that requires .NET Standard 2.0.


