producer.csproj in the producer subdirectory:
consumer.csproj in the consumer subdirectory:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
mkdir kafka-dotnet-getting-started
cd kafka-dotnet-getting-started
mkdir producer
mkdir consumer
producer.csproj in the producer subdirectory:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<StartupObject>Producer</StartupObject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Confluent.Kafka" Version="2.3" />
</ItemGroup>
</Project>
consumer.csproj in the consumer subdirectory:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<StartupObject>Consumer</StartupObject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Confluent.Kafka" Version="2.3" />
</ItemGroup>
</Project>
Was this page helpful?