Skip to content

Commit a756a70

Browse files
authored
Add new .NET 10 Support (#316)
1 parent 438fdad commit a756a70

File tree

7 files changed

+34
-17
lines changed

7 files changed

+34
-17
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
matrix:
4040
os: [ubuntu-latest]
41-
dotnet-version: ['6.0.x', '7.0.x', '8.0.x', '9.0.x']
41+
dotnet-version: ['6.0.x', '7.0.x', '8.0.x', '9.0.x', '10.0.x']
4242
steps:
4343
- name: Checkout
4444
uses: actions/checkout@v6.0.2
@@ -107,6 +107,12 @@ jobs:
107107
name: nuget-packages-9.0.x
108108
path: ./Artifacts
109109

110+
- name: Download NuGet packages for .NET 10.0
111+
uses: actions/download-artifact@v7
112+
with:
113+
name: nuget-packages-10.0.x
114+
path: ./Artifacts
115+
110116
- name: Push to NuGet
111117
if: github.event_name == 'release'
112118
run: dotnet nuget push ./Artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

Documentation/docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Then check out the [Quickstart Guide](/docs/quickstart) to begin.
2020
|---------|---------|
2121
| **NuGet Package** | [HiveMQtt](https://www.nuget.org/packages/HiveMQtt) |
2222
| **MQTT Version** | Full [MQTT 5.0](https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html) compliance |
23-
| **.NET Support** | .NET 6.0, 7.0, 8.0 & 9.0 |
23+
| **.NET Support** | .NET 6.0, 7.0, 8.0, 9.0 & 10.0 |
2424
| **License** | Apache 2.0 (Open Source) |
2525

2626
## Key Features

Documentation/src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const FeatureList = [
6060
{
6161
icon: '📦',
6262
title: 'Multi-Platform',
63-
description: 'Supports .NET 6, 7, 8, and 9. Works on Windows, Linux, macOS, and containerized environments.',
63+
description: 'Supports .NET 6, 7, 8, 9, and 10. Works on Windows, Linux, macOS, and containerized environments.',
6464
},
6565
];
6666

@@ -139,7 +139,7 @@ function InstallSection() {
139139
</div>
140140
<p className={styles.installNote}>
141141
Available on <a href="https://www.nuget.org/packages/HiveMQtt" target="_blank" rel="noopener noreferrer">NuGet</a>
142-
Supports .NET 6, 7, 8, and 9
142+
Supports .NET 6, 7, 8, 9, and 10
143143
</p>
144144
</div>
145145
</div>

Documentation/yarn.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,9 +3102,9 @@ ajv@^6.12.5:
31023102
uri-js "^4.2.2"
31033103

31043104
ajv@^8.0.0, ajv@^8.9.0:
3105-
version "8.17.1"
3106-
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6"
3107-
integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==
3105+
version "8.18.0"
3106+
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.18.0.tgz#8864186b6738d003eb3a933172bb3833e10cefbc"
3107+
integrity sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==
31083108
dependencies:
31093109
fast-deep-equal "^3.1.3"
31103110
fast-uri "^3.0.1"
@@ -3506,9 +3506,9 @@ caniuse-api@^3.0.0:
35063506
lodash.uniq "^4.5.0"
35073507

35083508
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001759, caniuse-lite@^1.0.30001766:
3509-
version "1.0.30001769"
3510-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz#1ad91594fad7dc233777c2781879ab5409f7d9c2"
3511-
integrity sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==
3509+
version "1.0.30001770"
3510+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz#4dc47d3b263a50fbb243448034921e0a88591a84"
3511+
integrity sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw==
35123512

35133513
ccount@^2.0.0:
35143514
version "2.0.1"
@@ -5492,9 +5492,9 @@ is-wsl@^2.2.0:
54925492
is-docker "^2.0.0"
54935493

54945494
is-wsl@^3.1.0:
5495-
version "3.1.0"
5496-
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-3.1.0.tgz#e1c657e39c10090afcbedec61720f6b924c3cbd2"
5497-
integrity sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==
5495+
version "3.1.1"
5496+
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-3.1.1.tgz#327897b26832a3eb117da6c27492d04ca132594f"
5497+
integrity sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==
54985498
dependencies:
54995499
is-inside-container "^1.0.0"
55005500

@@ -9020,9 +9020,9 @@ webpack-merge@^6.0.1:
90209020
wildcard "^2.0.1"
90219021

90229022
webpack-sources@^3.3.3:
9023-
version "3.3.3"
9024-
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.3.tgz#d4bf7f9909675d7a070ff14d0ef2a4f3c982c723"
9025-
integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==
9023+
version "3.3.4"
9024+
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.4.tgz#a338b95eb484ecc75fbb196cbe8a2890618b4891"
9025+
integrity sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q==
90269026

90279027
webpack@^5.88.1, webpack@^5.95.0:
90289028
version "5.105.2"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
![Static Badge](https://img.shields.io/badge/.NET-7.0-%23512BD4?style=for-the-badge)
1414
![Static Badge](https://img.shields.io/badge/.NET-8.0-%23512BD4?style=for-the-badge)
1515
![Static Badge](https://img.shields.io/badge/.NET-9.0-%23512BD4?style=for-the-badge)
16+
![Static Badge](https://img.shields.io/badge/.NET-10.0-%23512BD4?style=for-the-badge)
1617

1718
### 💽 Installation & Compatibility
1819
* **Easy-to-Install**: Available as a [NuGet package](https://www.nuget.org/packages/HiveMQtt).
1920
* **Globally Compatible**: Built to be a fully compliant MQTT 5.0 client compatible with all modern MQTT brokers.
20-
* **Multi-Targeted**: Supports .NET 6.0, 7.0, 8.0 & 9.0
21+
* **Multi-Targeted**: Supports .NET 6.0, 7.0, 8.0, 9.0 & 10.0
2122

2223
### 🚀 Features
2324
* **MQTT 5.0 Support**: Fully compliant with the latest [MQTT 5.0 specification](https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html), ensuring compatibility with modern MQTT brokers.

Source/HiveMQtt/HiveMQtt.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
$(TargetFrameworks);net9.0
2020
</TargetFrameworks>
2121

22+
<!-- Add net10.0 conditionally if the SDK supports it -->
23+
<TargetFrameworks Condition="'$(NETCoreSdkVersion)' >= '10.0.0'">
24+
$(TargetFrameworks);net10.0
25+
</TargetFrameworks>
26+
2227
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2328
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2429

Tests/HiveMQtt.Test/HiveMQtt.Test.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
$(TargetFrameworks);net9.0
2020
</TargetFrameworks>
2121

22+
<!-- Add net10.0 conditionally if the SDK supports it -->
23+
<TargetFrameworks Condition="'$(NETCoreSdkVersion)' >= '10.0.0'">
24+
$(TargetFrameworks);net10.0
25+
</TargetFrameworks>
26+
2227
<ReleaseVersion>0.1.0</ReleaseVersion>
2328
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2429
</PropertyGroup>

0 commit comments

Comments
 (0)