1
0

Updated dependencies, removed .NETStandard2.0
All checks were successful
Branch Build / build-test-deploy (push) Successful in 2m2s
Documentation Build / build-test-deploy (push) Successful in 2m25s

This commit is contained in:
2026-02-17 17:57:51 +01:00
parent 5631303cc6
commit 25b58f0bb6
14 changed files with 25 additions and 33 deletions

View File

@@ -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 - `UseDatabaseProvider()` throws `DatabaseProviderException` with more specific message content
- Migrated repository from Gitlab to Gitea - 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 ## v2.1.0, asp/v3.1.0, efc/v3.1.0, msgpack/v1.0.0, test/v2.2.0 - 2025-11-24

View File

@@ -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.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) | | AMWD.Common.Test | ![https://nuget.am-wd.de/packages/amwd.common.test/](https://services.am-wd.de/nuget.php?package=AMWD.Common.Test) |
## Documentation ## Documentation
Changelog is available here: [CHANGELOG](CHANGELOG.md) 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 ## 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 ```xml
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>

View File

@@ -1,6 +1,6 @@
- name: API - name: API
href: api/ href: api/
- name: Git - name: Source Code
href: https://gitea.am-wd.de/am-wd/common href: https://gitea.am-wd.de/am-wd/common
- name: NuGet - name: NuGet Packages
href: https://nuget.am-wd.de/?q=AMWD.Common href: https://nuget.am-wd.de/?q=AMWD.Common

View File

@@ -3,6 +3,5 @@
<packageSources> <packageSources>
<clear /> <clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="AM.WD" value="https://nuget.am-wd.de/v3/index.json" />
</packageSources> </packageSources>
</configuration> </configuration>

View File

@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<AssemblyName>amwd-common-aspnetcore</AssemblyName> <AssemblyName>amwd-common-aspnetcore</AssemblyName>
<RootNamespace>AMWD.Common.AspNetCore</RootNamespace> <RootNamespace>AMWD.Common.AspNetCore</RootNamespace>

View File

@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<AssemblyName>amwd-common-efcore</AssemblyName> <AssemblyName>amwd-common-efcore</AssemblyName>
<RootNamespace>AMWD.Common.EntityFrameworkCore</RootNamespace> <RootNamespace>AMWD.Common.EntityFrameworkCore</RootNamespace>
@@ -19,6 +17,7 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'"> <ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.0" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" />
</ItemGroup> </ItemGroup>

View File

@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net10.0</TargetFrameworks>
<AssemblyName>amwd-common-msgpack</AssemblyName> <AssemblyName>amwd-common-msgpack</AssemblyName>
<RootNamespace>AMWD.Common.MessagePack</RootNamespace> <RootNamespace>AMWD.Common.MessagePack</RootNamespace>
@@ -20,8 +18,4 @@
<PackageReference Include="MessagePack" Version="2.5.198" /> <PackageReference Include="MessagePack" Version="2.5.198" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.AspNetCore.HttpOverrides" Version="2.1.1" />
</ItemGroup>
</Project> </Project>

View File

@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>amwd-common-test</AssemblyName> <AssemblyName>amwd-common-test</AssemblyName>
<RootNamespace>AMWD.Common.Test</RootNamespace> <RootNamespace>AMWD.Common.Test</RootNamespace>
@@ -18,7 +16,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Moq" Version="4.20.72" /> <PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" /> <PackageReference Include="MSTest.TestFramework" Version="3.11.1" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Net; using System.Net;
using System.Net.Http; using System.Net.Http;
using System.Net.Http.Headers; using System.Net.Http.Headers;
@@ -32,7 +33,7 @@ namespace AMWD.Common.Test
{ {
Headers = req.Headers, Headers = req.Headers,
Method = req.Method, Method = req.Method,
Properties = req.Properties, Options = req.Options.ToDictionary(),
RequestUri = req.RequestUri, RequestUri = req.RequestUri,
Version = req.Version Version = req.Version
}; };
@@ -107,9 +108,9 @@ namespace AMWD.Common.Test
public HttpMethod Method { get; internal set; } public HttpMethod Method { get; internal set; }
/// <summary> /// <summary>
/// Gets of properties for the HTTP request. /// Gets of properties/options for the HTTP request.
/// </summary> /// </summary>
public IDictionary<string, object> Properties { get; internal set; } public Dictionary<string, object> Options { get; internal set; }
/// <summary> /// <summary>
/// Gets the <see cref="Uri"/> used for the HTTP request. /// Gets the <see cref="Uri"/> used for the HTTP request.

View File

@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net10.0</TargetFrameworks>
<AssemblyName>amwd-common</AssemblyName> <AssemblyName>amwd-common</AssemblyName>
<RootNamespace>AMWD.Common</RootNamespace> <RootNamespace>AMWD.Common</RootNamespace>
@@ -20,11 +18,6 @@
<PackageReference Include="Unclassified.DeepConvert" Version="1.4.1" /> <PackageReference Include="Unclassified.DeepConvert" Version="1.4.1" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.AspNetCore.HttpOverrides" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'"> <ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
</ItemGroup> </ItemGroup>

View File

@@ -1,5 +1,7 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<NrtRevisionFormat>{semvertag:main}{!:-dev}</NrtRevisionFormat> <NrtRevisionFormat>{semvertag:main}{!:-dev}</NrtRevisionFormat>
<NrtContinuousIntegrationBuild>$(ContinuousIntegrationBuild)</NrtContinuousIntegrationBuild> <NrtContinuousIntegrationBuild>$(ContinuousIntegrationBuild)</NrtContinuousIntegrationBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>

View File

@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,19 +1,21 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject> <IsTestProject>true</IsTestProject>
<CollectCoverage>true</CollectCoverage> <CollectCoverage>true</CollectCoverage>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="6.0.4"> <PackageReference Include="coverlet.msbuild" Version="8.0.0">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="Moq" Version="4.20.72" /> <PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="4.0.2" /> <PackageReference Include="MSTest.TestAdapter" Version="4.1.0" />
<PackageReference Include="MSTest.TestFramework" Version="4.0.2" /> <PackageReference Include="MSTest.TestFramework" Version="4.1.0" />
<PackageReference Include="ReflectionMagic" Version="5.0.1" /> <PackageReference Include="ReflectionMagic" Version="5.0.1" />
</ItemGroup> </ItemGroup>