Skip to content

Commit

Permalink
Update framework and package versions used in dotnet in-proc sample (#…
Browse files Browse the repository at this point in the history
…531)

* updated directive versions, removed unused directives

* update from netcore 3.1 to dotnet 8.0

---------

Co-authored-by: Pranava Vedagnya Gaddam <prgaddam@microsoft.com>
  • Loading branch information
aloiva and Pranava Vedagnya Gaddam authored Dec 13, 2024
1 parent e0b5aae commit 9f45e86
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 38 deletions.
8 changes: 4 additions & 4 deletions samples/dotnet/ConsoleConsumer/ConsoleConsumer.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Confluent.Kafka" Version="1.9.0" />
<PackageReference Include="Confluent.SchemaRegistry" Version="1.9.0" />
<PackageReference Include="Confluent.SchemaRegistry.Serdes.Avro" Version="1.9.0" />
<PackageReference Include="Confluent.Kafka" Version="2.6.1" />
<PackageReference Include="Confluent.SchemaRegistry" Version="2.6.1" />
<PackageReference Include="Confluent.SchemaRegistry.Serdes.Avro" Version="2.6.1" />
</ItemGroup>
<ItemGroup>
<None Update="cacert.pem">
Expand Down
1 change: 0 additions & 1 deletion samples/dotnet/ConsoleConsumer/MagicAvroDeserializer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Threading.Tasks;
using Confluent.Kafka;

namespace ConsoleConsumer
Expand Down
9 changes: 5 additions & 4 deletions samples/dotnet/ConsoleProducer/ConsoleProducer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Confluent.Kafka" Version="1.9.0" />
<PackageReference Include="Confluent.SchemaRegistry" Version="1.9.0" />
<PackageReference Include="Confluent.SchemaRegistry.Serdes.Protobuf" Version="1.9.0" />
<PackageReference Include="Confluent.Kafka" Version="2.6.1" />
<PackageReference Include="Confluent.SchemaRegistry" Version="2.6.1" />
<PackageReference Include="Confluent.SchemaRegistry.Serdes.Avro" Version="2.6.1" />
<PackageReference Include="Google.Protobuf" Version="3.29.1" />
</ItemGroup>
<ItemGroup>
<None Update="cacert.pem">
Expand Down
3 changes: 0 additions & 3 deletions samples/dotnet/ConsoleProducer/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ConsoleProducer
Expand Down
1 change: 0 additions & 1 deletion samples/dotnet/ConsoleProducer/ProtobufTopicProducer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace ConsoleProducer
{

public class ProtobufTopicProducer : ITopicProducer
{
private readonly string brokerList;
Expand Down
1 change: 0 additions & 1 deletion samples/dotnet/ConsoleProducer/StringTopicProducer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace ConsoleProducer
{

public class StringTopicProducer : ITopicProducer
{
private readonly string brokerList;
Expand Down
40 changes: 20 additions & 20 deletions samples/dotnet/KafkaFunctionSample/KafkaFunctionSample.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.7" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="local.settings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\Microsoft.Azure.WebJobs.Extensions.Kafka\Microsoft.Azure.WebJobs.Extensions.Kafka.csproj" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="local.settings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\Microsoft.Azure.WebJobs.Extensions.Kafka\Microsoft.Azure.WebJobs.Extensions.Kafka.csproj" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions samples/dotnet/SampleHost/SampleHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Logging" Version="3.0.5" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.4" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Logging" Version="4.0.3" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="5.3.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 9f45e86

Please sign in to comment.