Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .docfx/Dockerfile.docfx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG NGINX_VERSION=1.29.1-alpine
ARG NGINX_VERSION=1.29.3-alpine

FROM --platform=$BUILDPLATFORM nginx:${NGINX_VERSION} AS base
RUN rm -rf /usr/share/nginx/html/*

FROM --platform=$BUILDPLATFORM codebeltnet/docfx:2.78.3 AS build
FROM --platform=$BUILDPLATFORM codebeltnet/docfx:2.78.4 AS build

ADD [".", "docfx"]

Expand Down
2 changes: 1 addition & 1 deletion .docfx/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dest": "api",
"filter": "filterConfig.yml",
"properties": {
"TargetFramework": "net9.0"
"TargetFramework": "net10.0"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion .docfx/includes/availability-default.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Availability: .NET 9, .NET 8 and .NET Standard 2.0
Availability: .NET 10, .NET 9 and .NET Standard 2.0
2 changes: 1 addition & 1 deletion .docfx/includes/availability-modern.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Availability: .NET 9 and .NET 8
Availability: .NET 10 and .NET 9
25 changes: 13 additions & 12 deletions .github/workflows/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
configuration: [Debug, Release]
uses: codebeltnet/jobs-dotnet-build/.github/workflows/default.yml@v2
uses: codebeltnet/jobs-dotnet-build/.github/workflows/default.yml@v3
with:
configuration: ${{ matrix.configuration }}
strong-name-key-filename: versioning.snk
Expand All @@ -41,7 +41,7 @@ jobs:
strategy:
matrix:
configuration: [Debug, Release]
uses: codebeltnet/jobs-dotnet-pack/.github/workflows/default.yml@v2
uses: codebeltnet/jobs-dotnet-pack/.github/workflows/default.yml@v3
with:
configuration: ${{ matrix.configuration }}
version: ${{ needs.build.outputs.version }}
Expand All @@ -54,17 +54,18 @@ jobs:
matrix:
os: [ubuntu-24.04, windows-2022]
configuration: [Debug, Release]
uses: codebeltnet/jobs-dotnet-test/.github/workflows/default.yml@v2
uses: codebeltnet/jobs-dotnet-test/.github/workflows/default.yml@v3
with:
configuration: ${{ matrix.configuration }}
runs-on: ${{ matrix.os }}
build-switches: -p:SkipSignAssembly=true
restore: true
build: true # needed for xunitv3

sonarcloud:
name: call-sonarcloud
needs: [build,test]
uses: codebeltnet/jobs-sonarcloud/.github/workflows/default.yml@v2
uses: codebeltnet/jobs-sonarcloud/.github/workflows/default.yml@v3
with:
organization: geekle
projectKey: asp-versioning
Expand All @@ -79,18 +80,18 @@ jobs:
repository: codebeltnet/asp-versioning
secrets: inherit

codeql:
name: call-codeql
needs: [build,test]
uses: codebeltnet/jobs-codeql/.github/workflows/default.yml@v2
permissions:
security-events: write
# codeql:
# name: call-codeql
# needs: [build,test]
# uses: codebeltnet/jobs-codeql/.github/workflows/default.yml@v3
# permissions:
# security-events: write

deploy:
if: github.event_name != 'pull_request'
name: call-nuget
needs: [build, pack, test, sonarcloud, codecov, codeql]
uses: codebeltnet/jobs-nuget-push/.github/workflows/default.yml@v1
needs: [build, pack, test, sonarcloud, codecov]
uses: codebeltnet/jobs-nuget-push/.github/workflows/default.yml@v2
with:
version: ${{ needs.build.outputs.version }}
environment: Production
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Version 9.0.8
Version 10.0.0
Availability: .NET 10 and .NET 9

# ALM
- ADDED Support for TFM .NET 10 (LTS)
- REMOVED Support for TFM .NET 8 (LTS)
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)

Version 9.0.8
Availability: .NET 9 and .NET 8

# ALM
Expand Down
2 changes: 2 additions & 0 deletions .nuget/Codebelt.Extensions.Asp.Versioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

An open-source project (MIT license) that targets and complements the [asp-versioning](https://github.com/dotnet/aspnet-api-versioning) versioning engine. It aims to provide a uniform and convenient developer experience when working with RESTful API versioning.

Your versatile Asp.Versioning companion for modern development with `.NET 9` and `.NET 10`.

It is, by heart, free, flexible and built to extend and boost your agile codebelt.

## **Codebelt.Extensions.Asp.Versioning** for .NET
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ For more details, please refer to `PackageReleaseNotes.txt` on a per assembly ba
> [!NOTE]
> Changelog entries prior to version 8.4.0 was migrated from previous versions of Cuemon.Extensions.Asp.Versioning.

## [10.0.0] - 2025-11-13

This is a major release that focuses on adapting the latest `.NET 10` release (LTS) in exchange for current `.NET 8` (LTS).

> To ensure access to current features, improvements, and security updates, and to keep the codebase clean and easy to maintain, we target only the latest long-term (LTS), short-term (STS) and (where applicable) cross-platform .NET versions.

## [9.0.8] - 2025-10-20

This is a service update that focuses on package dependencies.
Expand Down
10 changes: 6 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<PropertyGroup Condition="'$(IsTestProject)' == 'false'">
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
<TargetFrameworks>net10.0;net9.0</TargetFrameworks>
<Copyright>Copyright © Geekle 2024-2025. All rights reserved.</Copyright>
<Authors>gimlichael</Authors>
<Company>Geekle</Company>
Expand Down Expand Up @@ -48,10 +48,11 @@
</ItemGroup>

<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
<TargetFrameworks>net10.0;net9.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<RunAnalyzers>false</RunAnalyzers>
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
Expand All @@ -61,12 +62,13 @@
<AnalysisLevel>none</AnalysisLevel>
<NoWarn>NU1701,NETSDK1206</NoWarn>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
</PropertyGroup>

<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.console" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.v3.runner.console" />
<PackageReference Include="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
20 changes: 10 additions & 10 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
<PackageVersion Include="Asp.Versioning.Http" Version="8.1.0" />
<PackageVersion Include="Asp.Versioning.Mvc" Version="8.1.0" />
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
<PackageVersion Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json" Version="9.0.8" />
<PackageVersion Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Text.Yaml" Version="9.0.8" />
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="10.0.7" />
<PackageVersion Include="Cuemon.AspNetCore" Version="9.0.10" />
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc" Version="9.0.10" />
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json" Version="9.0.10" />
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml" Version="9.0.10" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageVersion Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json" Version="10.0.0" />
<PackageVersion Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Text.Yaml" Version="10.0.0" />
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="11.0.0" />
<PackageVersion Include="Cuemon.AspNetCore" Version="10.0.0" />
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc" Version="10.0.0" />
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json" Version="10.0.0" />
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml" Version="10.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageVersion Include="MinVer" Version="6.0.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit.runner.console" Version="2.9.3" />
<PackageVersion Include="xunit.v3" Version="3.1.0" />
<PackageVersion Include="xunit.v3.runner.console" Version="3.2.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@

[![Asp.Versioning Ext. CI/CD Pipeline](https://github.com/codebeltnet/asp-versioning/actions/workflows/pipelines.yml/badge.svg)](https://github.com/codebeltnet/asp-versioning/actions/workflows/pipelines.yml) [![codecov](https://codecov.io/gh/codebeltnet/asp-versioning/graph/badge.svg?token=BN2UhFM3bb)](https://codecov.io/gh/codebeltnet/asp-versioning) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=asp-versioning&metric=alert_status)](https://sonarcloud.io/dashboard?id=asp-versioning) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=asp-versioning&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=asp-versioning) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=asp-versioning&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=asp-versioning) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=asp-versioning&metric=security_rating)](https://sonarcloud.io/dashboard?id=asp-versioning) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/codebeltnet/asp-versioning/badge)](https://scorecard.dev/viewer/?uri=github.com/codebeltnet/asp-versioning)

### ℹ️ About

An open-source project (MIT license) that targets and complements the [Asp.Versioning](https://github.com/dotnet/aspnet-api-versioning) versioning engine. It aims to provide a uniform and convenient developer experience when working with RESTful API versioning.

Your versatile Asp.Versioning companion for modern development with `.NET 9` and `.NET 10`.

It is, by heart, free, flexible and built to extend and boost your agile codebelt.

### 📚 Documentation

Full documentation (generated by [DocFx](https://github.com/dotnet/docfx)) located here: https://versioning.codebelt.net/

### 📦 Standalone Packages
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
using Asp.Versioning;
using Cuemon;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
#if NET8_0_OR_GREATER
using Cuemon.AspNetCore.Http;
#endif

namespace Codebelt.Extensions.Asp.Versioning
{
Expand Down Expand Up @@ -43,11 +40,6 @@ public static IServiceCollection AddRestfulApiVersioning(this IServiceCollection
o.SubstituteApiVersionInUrl = true;
});

#if NET6_0
if (options.ProblemDetailsFactoryType != null && options.ProblemDetailsFactoryType != typeof(DefaultProblemDetailsFactory)) { services.Replace(ServiceDescriptor.Singleton(_ => Activator.CreateInstance(options.ProblemDetailsFactoryType) as IProblemDetailsFactory)); }
#endif

#if NET8_0_OR_GREATER
if (options.UseBuiltInRfc7807)
{
services.AddProblemDetails();
Expand All @@ -65,7 +57,7 @@ public static IServiceCollection AddRestfulApiVersioning(this IServiceCollection
throw new InternalServerErrorException(pd.Detail);
});
}
#endif

return services;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
using YamlDotNet.Serialization.NamingConventions;

namespace Codebelt.Extensions.Asp.Versioning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
using YamlDotNet.Serialization.NamingConventions;

namespace Codebelt.Extensions.Asp.Versioning
Expand All @@ -28,7 +27,6 @@ public ProblemDetailsFactoryTest(ITestOutputHelper output) : base(output)
{
}

#if NET8_0_OR_GREATER
[Fact]
public async Task GetRequest_ShouldFailWithBadRequest_FormattedAsRfc7807_As_b3_IsAnUnknownVersion()
{
Expand Down Expand Up @@ -58,20 +56,13 @@ public async Task GetRequest_ShouldFailWithBadRequest_FormattedAsRfc7807_As_b3_I
Assert.Equal(HttpMethod.Get, sut.RequestMessage.Method);
Assert.EndsWith("application/problem+json", sut.Content.Headers.ContentType.ToString());

#if NET9_0

var expected = """{"type":"https://docs.api-versioning.org/problems#invalid","title":"Invalid API version","status":400,"detail":"The HTTP resource that matches the request URI 'http://localhost/fake/' does not support the API version 'b3'.","traceId":"*"}""";
Assert.True(Match(expected, await sut.Content.ReadAsStringAsync()));
#else
var expected = @"{""type"":""https://docs.api-versioning.org/problems#invalid"",""title"":""Invalid API version"",""status"":400,""detail"":""The HTTP resource that matches the request URI 'http://localhost/fake/' does not support the API version 'b3'.""}";
Assert.Equal(expected, await sut.Content.ReadAsStringAsync());
#endif



// sadly Microsoft does not use the formatter we feed into the pipeline .. they use their own horrid WriteJsonAsync implementation ..
}
}
#endif

[Fact]
public async Task GetRequest_ShouldFailWithBadRequestFormattedAsXmlResponse_As_b3_IsAnUnknownVersion()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Codebelt.Extensions.Xunit;
using Cuemon;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Extensions.Asp.Versioning
{
Expand Down
2 changes: 1 addition & 1 deletion testenvironments.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "Docker-Ubuntu",
"type": "docker",
"dockerImage": "gimlichael/ubuntu-testrunner:net8.0.415-9.0.306"
"dockerImage": "gimlichael/ubuntu-testrunner:net8.0.416-9.0.307-10.0.100"
}
]
}
Loading