Open latop2604 opened 5 months ago
Hello, I managed to have my app working with AOT on windows and linux (ubuntu wsl). I tested only with net8.0 framework.
It's a basic consumer app with avalonia UI. But can be summarized as below:
var config = new ConsumerConfig { BootstrapServers = kafkaServers, GroupId = "GroupIdPrefix" + Guid.NewGuid(), AutoOffsetReset = AutoOffsetReset.Latest, }; using var consumer = new ConsumerBuilder<string, byte[]>(config) .SetErrorHandler((_, e) => {/* ... */}) .Build(); consumer.Subscribe("my-topic"); while (true) { var result = consumer.Consume(TimeSpan.FromMilliseconds(1000)); // ... }
I don't know if it will work with the current list of TargetFrameworks or if we need to add net8.0 explicitly.
Waiting for your feedback.
Should fix https://github.com/confluentinc/confluent-kafka-dotnet/issues/2146
All committers have signed the CLA.
Any opinion about this mr @anchitj ?
Hello, I managed to have my app working with AOT on windows and linux (ubuntu wsl). I tested only with net8.0 framework.
It's a basic consumer app with avalonia UI. But can be summarized as below:
I don't know if it will work with the current list of TargetFrameworks or if we need to add net8.0 explicitly.
Waiting for your feedback.
Should fix https://github.com/confluentinc/confluent-kafka-dotnet/issues/2146