This is an automated email from the ASF dual-hosted git repository.
blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git
The following commit(s) were added to refs/heads/master by this push:
new c6dd4a2 Adding .NET 7, removing .NET Core 3.1 and .NET 5.0, updating
NuGet packages
c6dd4a2 is described below
commit c6dd4a2d253575522bb2d4795ea7b8d0e4f19698
Author: Daniel Blankensteiner <[email protected]>
AuthorDate: Mon Nov 28 13:08:50 2022 +0100
Adding .NET 7, removing .NET Core 3.1 and .NET 5.0, updating NuGet packages
---
.github/workflows/ci-unit.yaml | 2 +-
CHANGELOG.md | 11 +++++++++++
samples/Consuming/Consuming.csproj | 4 ++--
samples/Processing/Processing.csproj | 6 +++---
samples/Producing/Producing.csproj | 4 ++--
samples/Reading/Reading.csproj | 4 ++--
src/DotPulsar/DotPulsar.csproj | 24 ++++++++----------------
tests/DotPulsar.Tests/DotPulsar.Tests.csproj | 8 ++++----
8 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/.github/workflows/ci-unit.yaml b/.github/workflows/ci-unit.yaml
index bb8ec54..41f807c 100644
--- a/.github/workflows/ci-unit.yaml
+++ b/.github/workflows/ci-unit.yaml
@@ -37,7 +37,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
- dotnet-version: '6.0.x'
+ dotnet-version: '7.0.x'
- name: run unit tests
run: dotnet test ./tests/DotPulsar.Tests/DotPulsar.Tests.csproj
--logger "trx;verbosity=detailed"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fddc921..d8ddf2c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this
file.
The format is based on [Keep a
Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [Unreleased]
+
+### Added
+
+- .NET 7 added as a target framework
+
+### Removed
+
+- .NET Core 3.1 removed as a target framework
+- .NET 5.0 removed as a target framework
+
## [2.5.2] - 2022-11-02
### Changed
diff --git a/samples/Consuming/Consuming.csproj
b/samples/Consuming/Consuming.csproj
index e2bb331..6a0c465 100644
--- a/samples/Consuming/Consuming.csproj
+++ b/samples/Consuming/Consuming.csproj
@@ -1,8 +1,8 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
diff --git a/samples/Processing/Processing.csproj
b/samples/Processing/Processing.csproj
index 765c2a4..4565e5f 100644
--- a/samples/Processing/Processing.csproj
+++ b/samples/Processing/Processing.csproj
@@ -1,14 +1,14 @@
-<Project Sdk="Microsoft.NET.Sdk.Worker">
+<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>dotnet-Processing-BFF6CD69-A4C9-4F15-B6AB-A2ED78B89D3B</UserSecretsId>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
+ <PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
</ItemGroup>
<ItemGroup>
diff --git a/samples/Producing/Producing.csproj
b/samples/Producing/Producing.csproj
index e2bb331..6a0c465 100644
--- a/samples/Producing/Producing.csproj
+++ b/samples/Producing/Producing.csproj
@@ -1,8 +1,8 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
diff --git a/samples/Reading/Reading.csproj b/samples/Reading/Reading.csproj
index e2bb331..6a0c465 100644
--- a/samples/Reading/Reading.csproj
+++ b/samples/Reading/Reading.csproj
@@ -1,8 +1,8 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
diff --git a/src/DotPulsar/DotPulsar.csproj b/src/DotPulsar/DotPulsar.csproj
index 3cf32fd..c7e3038 100644
--- a/src/DotPulsar/DotPulsar.csproj
+++ b/src/DotPulsar/DotPulsar.csproj
@@ -1,7 +1,7 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
-
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
+
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks>
<Version>2.5.2</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
@@ -23,30 +23,22 @@
<ItemGroup>
<PackageReference Include="HashDepot" Version="2.0.3" />
- <PackageReference Include="Microsoft.Extensions.ObjectPool"
Version="6.0.10" />
+ <PackageReference Include="Microsoft.Extensions.ObjectPool"
Version="7.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1"
PrivateAssets="All" />
- <PackageReference Include="protobuf-net" Version="3.1.22" />
- <PackageReference Include="System.IO.Pipelines" Version="6.0.3" />
+ <PackageReference Include="protobuf-net" Version="3.1.25" />
+ <PackageReference Include="System.IO.Pipelines" Version="7.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
- <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0"
/>
+ <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0"
/>
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
- <PackageReference Include="System.Diagnostics.DiagnosticSource"
Version="6.0.0" />
+ <PackageReference Include="System.Diagnostics.DiagnosticSource"
Version="7.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
- <PackageReference Include="System.Diagnostics.DiagnosticSource"
Version="6.0.0" />
+ <PackageReference Include="System.Diagnostics.DiagnosticSource"
Version="7.0.0" />
</ItemGroup>
- <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
- <PackageReference Include="System.Diagnostics.DiagnosticSource"
Version="6.0.0" />
- </ItemGroup>
-
- <ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
- <PackageReference Include="System.Diagnostics.DiagnosticSource"
Version="6.0.0" />
- </ItemGroup>
-
<ItemGroup>
<None Include="PackageIcon.png" Pack="true" PackagePath="/"
Visible="False" />
</ItemGroup>
diff --git a/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
b/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
index 69ed29a..e6ab414 100644
--- a/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
+++ b/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
@@ -1,7 +1,7 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
@@ -12,7 +12,7 @@
<PackageReference Include="IronSnappy" Version="1.3.0" />
<PackageReference Include="K4os.Compression.LZ4" Version="1.2.16" />
<PackageReference Include="NSubstitute" Version="4.4.0" />
- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
@@ -23,7 +23,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers;
buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="ZstdNet" Version="1.4.5" />
- <PackageReference Include="ZstdSharp.Port" Version="0.6.4" />
+ <PackageReference Include="ZstdSharp.Port" Version="0.6.5" />
</ItemGroup>
<ItemGroup>