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: unitify.snk
Expand All @@ -39,7 +39,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 @@ -52,17 +52,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
build: true # we need to build due to xUnitv3
restore: true

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: unitify
Expand All @@ -77,18 +78,18 @@ jobs:
repository: codebeltnet/unitify
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
8 changes: 8 additions & 0 deletions .nuget/Codebelt.Unitify/PackageReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
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

Expand Down
2 changes: 2 additions & 0 deletions .nuget/Codebelt.Unitify/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 offers types that simplify unit management with comprehensive metric and binary support for prefixes, multiples, and submultiples.

Your versatile "units of measure" 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.Unitify** 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 9.0.0 was migrated from previous versions of [Cuemon.Core](https://github.com/gimlichael/Cuemon/commit/83e0c7af2cdaa07351e878fa7276558838f2e7e6).

## [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
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="10.0.7" />
<PackageVersion Include="Cuemon.Core" Version="9.0.10" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="11.0.0" />
<PackageVersion Include="Cuemon.Core" Version="10.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
Comment on lines +6 to +8
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify updated package versions are current and compatible.

The package upgrades include major version bumps for Codebelt.Extensions.Xunit.App (10.0.7 → 11.0.0) and Cuemon.Core (9.0.10 → 10.0.0), which align with the .NET 10 upgrade. Please verify these versions are the latest stable releases compatible with .NET 10.


🌐 Web query:

What are the latest versions of Codebelt.Extensions.Xunit.App, Cuemon.Core, and Microsoft.NET.Test.Sdk packages compatible with .NET 10?

💡 Result:

  • Codebelt.Extensions.Xunit.App — 10.0.4. [NuGet]. [1]
  • Cuemon.Core — 9.0.9 (stable); there are 10.0.0 preview/rc builds available (pre-release). [2][3]
  • Microsoft.NET.Test.Sdk — 18.0.1 (latest; lists net10 compatibility). [4]

Sources:
[1] Codebelt.Extensions.Xunit.App NuGet page (version 10.0.4). (nuget.org)
[2] Cuemon.Core NuGet page (version 9.0.9). (nuget.org)
[3] Cuemon preview/rc info (10.0.0-preview / rc listings). (nugetmusthaves.com)
[4] Microsoft.NET.Test.Sdk NuGet page (18.0.1; net10 compatibility). (nuget.org)

Would you like me to provide the exact PackageReference lines for each?

Citations:


Correct package versions: critical mismatches detected.

The versions specified do not match the latest stable releases on NuGet:

  • Codebelt.Extensions.Xunit.App 11.0.0 does not exist as a stable release; the latest stable is 10.0.4
  • Cuemon.Core 10.0.0 is only available as pre-release/RC; the latest stable is 9.0.9
  • Microsoft.NET.Test.Sdk 18.0.1 is correct and supports .NET 10

Update Directory.Packages.props lines 6–8 to use stable versions: Codebelt.Extensions.Xunit.App 10.0.4 and Cuemon.Core 9.0.9.

🤖 Prompt for AI Agents
In Directory.Packages.props around lines 6 to 8, the package versions are
incorrect: replace Codebelt.Extensions.Xunit.App 11.0.0 with the stable 10.0.4
and replace Cuemon.Core 10.0.0 (pre-release) with the stable 9.0.9; leave
Microsoft.NET.Test.Sdk at 18.0.1. Update the Version attributes accordingly so
all referenced packages point to the specified stable releases.

<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" />
Comment on lines +12 to +13
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify xunit v3 versions are current.

The migration from xunit v2 to xunit v3 is a significant framework upgrade. The package references have been correctly updated to use xunit.v3 (3.1.0) and xunit.v3.runner.console (3.2.0). Please verify these are the latest stable v3 releases.


🌐 Web query:

What are the latest stable versions of xunit.v3 and xunit.v3.runner.console packages?

💡 Result:

As of November 13, 2025:

  • xunit.v3 — 3.2.0. [1]
  • xunit.v3.runner.console — 3.2.0. [2]

Sources:
[1] NuGet: xunit.v3 (package page).
[2] NuGet: xunit.v3.runner.console (package page).


Update xunit.v3 to 3.2.0.

The latest stable releases are xunit.v3 3.2.0 and xunit.v3.runner.console 3.2.0. The runner console package is correctly at 3.2.0, but xunit.v3 should be updated from 3.1.0 to 3.2.0 to align with the latest release.

🤖 Prompt for AI Agents
In Directory.Packages.props around lines 12 to 13, xunit.v3 is pinned to
Version="3.1.0" while xunit.v3.runner.console is at 3.2.0; update the xunit.v3
PackageVersion entry to Version="3.2.0" so both packages reference the same
latest stable 3.2.0 release.

<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>
</Project>
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@

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

### ℹ️ About

An open-source project (MIT license) that offers types that simplify unit management with comprehensive metric and binary support for prefixes, multiples, and submultiples.

Your versatile "units of measure" 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.

> [!NOTE]
> 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.

### 📚 Documentation

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

## 📦 Standalone Packages
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/BaseUnitTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/BinaryPrefixTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/BitStorageTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/ByteStorageTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/DecimalPrefixTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/PrefixUnitExtensionsTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/UnitFactoryTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
Expand Down
1 change: 0 additions & 1 deletion test/Codebelt.Unitify/UnitTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Codebelt.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;

namespace Codebelt.Unitify
{
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"
}
]
}