diff --git a/CHANGELOG.md b/CHANGELOG.md index 7269a36..ddd9dce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `UseDatabaseProvider()` throws `DatabaseProviderException` with more specific message content - Migrated repository from Gitlab to Gitea +- Updated NuGet packages to oldest supported versions without known issues (to keep compatibility) +- Replaced `Properties` by `Options` for `HttpMessageHandlerMoq` + +### Removed + +- Support for .NET Standard 2.0 (only "Core" LTS versions) ## v2.1.0, asp/v3.1.0, efc/v3.1.0, msgpack/v1.0.0, test/v2.2.0 - 2025-11-24 diff --git a/README.md b/README.md index 141a717..058c75f 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,16 @@ To save time, they are all packed to NuGet packages. | AMWD.Common.MessagePack | ![https://nuget.am-wd.de/packages/amwd.common.messagepack/](https://services.am-wd.de/nuget.php?package=AMWD.Common.MessagePack) | | AMWD.Common.Test | ![https://nuget.am-wd.de/packages/amwd.common.test/](https://services.am-wd.de/nuget.php?package=AMWD.Common.Test) | + ## Documentation Changelog is available here: [CHANGELOG](CHANGELOG.md) -Documentation can be found here: [AM.WD Wiki](https://wiki.am-wd.de/libs/common) +Documentation can be found here: [docfx](https://docs.am-wd.de/common/) + ## Use in projects -Create a `nuget.config` file in your root project folder (where the `.sln` file is located) +Create a `nuget.config` file in your root project folder (where the `.sln(x)` file is located) ```xml diff --git a/docs/toc.yml b/docs/toc.yml index 02dd0a3..c22865e 100644 --- a/docs/toc.yml +++ b/docs/toc.yml @@ -1,6 +1,6 @@ - name: API href: api/ -- name: Git +- name: Source Code href: https://gitea.am-wd.de/am-wd/common -- name: NuGet +- name: NuGet Packages href: https://nuget.am-wd.de/?q=AMWD.Common diff --git a/nuget.config b/nuget.config index d007eba..e219de2 100644 --- a/nuget.config +++ b/nuget.config @@ -3,6 +3,5 @@ - diff --git a/src/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj b/src/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj index aa32191..f3ac0a4 100644 --- a/src/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj +++ b/src/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj @@ -1,8 +1,6 @@  - net8.0;net10.0 - amwd-common-aspnetcore AMWD.Common.AspNetCore diff --git a/src/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj b/src/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj index 9796750..542ac1f 100644 --- a/src/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj +++ b/src/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj @@ -1,8 +1,6 @@  - net8.0;net10.0 - amwd-common-efcore AMWD.Common.EntityFrameworkCore @@ -19,6 +17,7 @@ + diff --git a/src/AMWD.Common.MessagePack/AMWD.Common.MessagePack.csproj b/src/AMWD.Common.MessagePack/AMWD.Common.MessagePack.csproj index e7f35b0..31aac0f 100644 --- a/src/AMWD.Common.MessagePack/AMWD.Common.MessagePack.csproj +++ b/src/AMWD.Common.MessagePack/AMWD.Common.MessagePack.csproj @@ -1,8 +1,6 @@  - netstandard2.0;net8.0;net10.0 - amwd-common-msgpack AMWD.Common.MessagePack @@ -20,8 +18,4 @@ - - - - diff --git a/src/AMWD.Common.Test/AMWD.Common.Test.csproj b/src/AMWD.Common.Test/AMWD.Common.Test.csproj index 323d707..c0a1d4a 100644 --- a/src/AMWD.Common.Test/AMWD.Common.Test.csproj +++ b/src/AMWD.Common.Test/AMWD.Common.Test.csproj @@ -1,8 +1,6 @@  - netstandard2.0 - amwd-common-test AMWD.Common.Test @@ -18,7 +16,7 @@ - + diff --git a/src/AMWD.Common.Test/HttpMessageHandlerMoq.cs b/src/AMWD.Common.Test/HttpMessageHandlerMoq.cs index 3102348..a417724 100644 --- a/src/AMWD.Common.Test/HttpMessageHandlerMoq.cs +++ b/src/AMWD.Common.Test/HttpMessageHandlerMoq.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; @@ -32,7 +33,7 @@ namespace AMWD.Common.Test { Headers = req.Headers, Method = req.Method, - Properties = req.Properties, + Options = req.Options.ToDictionary(), RequestUri = req.RequestUri, Version = req.Version }; @@ -107,9 +108,9 @@ namespace AMWD.Common.Test public HttpMethod Method { get; internal set; } /// - /// Gets of properties for the HTTP request. + /// Gets of properties/options for the HTTP request. /// - public IDictionary Properties { get; internal set; } + public Dictionary Options { get; internal set; } /// /// Gets the used for the HTTP request. diff --git a/src/AMWD.Common/AMWD.Common.csproj b/src/AMWD.Common/AMWD.Common.csproj index 2b2339d..8c1e291 100644 --- a/src/AMWD.Common/AMWD.Common.csproj +++ b/src/AMWD.Common/AMWD.Common.csproj @@ -1,8 +1,6 @@  - netstandard2.0;net8.0;net10.0 - amwd-common AMWD.Common @@ -20,11 +18,6 @@ - - - - - diff --git a/src/Directory.Build.props b/src/Directory.Build.props index f5c29d1..73cd168 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,5 +1,7 @@ + net8.0;net10.0 + {semvertag:main}{!:-dev} $(ContinuousIntegrationBuild) true diff --git a/test/AMWD.Common.AspNetCore.Tests/AMWD.Common.AspNetCore.Tests.csproj b/test/AMWD.Common.AspNetCore.Tests/AMWD.Common.AspNetCore.Tests.csproj index bb801f9..d4bb13b 100644 --- a/test/AMWD.Common.AspNetCore.Tests/AMWD.Common.AspNetCore.Tests.csproj +++ b/test/AMWD.Common.AspNetCore.Tests/AMWD.Common.AspNetCore.Tests.csproj @@ -1,7 +1,6 @@  - net10.0 diff --git a/test/AMWD.Common.Tests/AMWD.Common.Tests.csproj b/test/AMWD.Common.Tests/AMWD.Common.Tests.csproj index 99a6e17..3adf66c 100644 --- a/test/AMWD.Common.Tests/AMWD.Common.Tests.csproj +++ b/test/AMWD.Common.Tests/AMWD.Common.Tests.csproj @@ -1,7 +1,6 @@  - net10.0 diff --git a/test/Directory.Build.props b/test/Directory.Build.props index 2d00e5f..8095c9e 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -1,19 +1,21 @@ + net10.0 + false true true - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + +