Skip to content

Commit 409217e

Browse files
authored
chore: Update to .NET 10 and refactor extensions (#70)
1 parent cb80544 commit 409217e

37 files changed

+188
-180
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
## Core Technology Stack
1111

1212
```text
13-
Language: C# 12+ with .NET 9
13+
Language: C# 14 with .NET 10
1414
CLI: System.CommandLine 2.0-rc
1515
UI: Spectre.Console 0.51.1
1616
CQRS: MediatR 13.1.0

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323

2424
# Environment variables available to all jobs
2525
env:
26-
DOTNET_VERSION: '9.0.x'
26+
DOTNET_VERSION: '10.0.x'
2727
# Maximum allowed coverage decrease (percentage points)
2828
# PRs that decrease coverage by more than this will fail
2929
MAX_COVERAGE_DECREASE: 0.5

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
- name: Setup .NET SDK
189189
uses: actions/setup-dotnet@v4
190190
with:
191-
dotnet-version: '9.0.x'
191+
dotnet-version: '10.0.x'
192192

193193
- name: Restore dependencies
194194
run: dotnet restore

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Ten Second Tom - .gitignore (C# / .NET 9 CLI)
1+
# Ten Second Tom - .gitignore (C# / .NET 10 CLI)
22
# Reference base: GitHub's VisualStudio + Dotnet + macOS templates, trimmed & curated.
33
# Only ignore what is safe to regenerate or machine/user specific.
44

.specify/memory/constitution.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Core Principles
44

55
### I. Modern .NET & Idiomatic C#
6-
- **Target**: .NET 9 with C# 12+ modern features
7-
- **Required Features**: File-scoped namespaces, primary constructors, records, required properties, collection expressions
6+
- **Target**: .NET 10 with C# 14 modern features
7+
- **Required Features**: File-scoped namespaces, primary constructors, records, required properties, collection expressions, extension members, field-backed properties
88
- **Pattern**: Nullable reference types enabled project-wide
99
- **No Legacy Code**: Avoid outdated patterns (traditional constructors, verbose property initialization)
1010

@@ -147,7 +147,7 @@ public static class [UseCase]
147147
## Technology Stack
148148

149149
### Required Dependencies
150-
- **.NET 9** - Latest LTS runtime
150+
- **.NET 10** - Latest LTS runtime
151151
- **System.CommandLine 2.0-rc** - CLI framework
152152
- **MediatR 13.1+** - CQRS implementation
153153
- **FluentValidation 12.0+** - Input validation

.vscode/launch.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// Ten Second Tom debugging configurations.
3-
// Modern .NET 9 CLI: we always launch the project (build on debug) and supply useful environment variables.
3+
// Modern .NET 10 CLI: we always launch the project (build on debug) and supply useful environment variables.
44
// DOTNET_ENVIRONMENT drives loading of appsettings.{Environment}.json via EnvironmentHelper.
55
// You can override LLM provider/model per configuration without changing persisted config.
66
"version": "0.2.0",
@@ -10,7 +10,7 @@
1010
"type": "coreclr",
1111
"request": "launch",
1212
"preLaunchTask": "build",
13-
"program": "${workspaceFolder}/src/bin/Debug/net9.0/TenSecondTom.dll",
13+
"program": "${workspaceFolder}/src/bin/Debug/net10.0/TenSecondTom.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}/src",
1616
"console": "integratedTerminal",
@@ -32,7 +32,7 @@
3232
"type": "coreclr",
3333
"request": "launch",
3434
"preLaunchTask": "build",
35-
"program": "${workspaceFolder}/src/bin/Debug/net9.0/TenSecondTom.dll",
35+
"program": "${workspaceFolder}/src/bin/Debug/net10.0/TenSecondTom.dll",
3636
"args": ["today"],
3737
"cwd": "${workspaceFolder}/src",
3838
"console": "integratedTerminal",
@@ -48,7 +48,7 @@
4848
"type": "coreclr",
4949
"request": "launch",
5050
"preLaunchTask": "build",
51-
"program": "${workspaceFolder}/src/bin/Debug/net9.0/TenSecondTom.dll",
51+
"program": "${workspaceFolder}/src/bin/Debug/net10.0/TenSecondTom.dll",
5252
"args": ["this-week", "--json"],
5353
"cwd": "${workspaceFolder}/src",
5454
"console": "integratedTerminal",
@@ -67,7 +67,7 @@
6767
"type": "coreclr",
6868
"request": "launch",
6969
"preLaunchTask": "build",
70-
"program": "${workspaceFolder}/src/bin/Debug/net9.0/TenSecondTom.dll",
70+
"program": "${workspaceFolder}/src/bin/Debug/net10.0/TenSecondTom.dll",
7171
"args": ["setup", "--force"],
7272
"cwd": "${workspaceFolder}/src",
7373
"console": "integratedTerminal",
@@ -83,7 +83,7 @@
8383
"type": "coreclr",
8484
"request": "launch",
8585
"preLaunchTask": "build",
86-
"program": "${workspaceFolder}/src/bin/Debug/net9.0/TenSecondTom.dll",
86+
"program": "${workspaceFolder}/src/bin/Debug/net10.0/TenSecondTom.dll",
8787
"args": ["today"],
8888
"cwd": "${workspaceFolder}/src",
8989
"console": "integratedTerminal",
@@ -98,9 +98,9 @@
9898
"type": "coreclr",
9999
"request": "launch",
100100
"preLaunchTask": "build",
101-
"program": "${workspaceFolder}/src/bin/Debug/net9.0/TenSecondTom.dll",
101+
"program": "${workspaceFolder}/src/bin/Debug/net10.0/TenSecondTom.dll",
102102
"args": ["transcribe"],
103-
"cwd": "${workspaceFolder}/src/bin/Debug/net9.0",
103+
"cwd": "${workspaceFolder}/src/bin/Debug/net10.0",
104104
"console": "integratedTerminal",
105105
"internalConsoleOptions": "neverOpen",
106106
"env": {

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
// VS Code task definitions for Ten Second Tom (.NET 9 CLI)
2+
// VS Code task definitions for Ten Second Tom (.NET 10 CLI)
33
// Provides an explicit 'build' task referenced by launch.json.
44
// Additional tasks (test, publish) can be added later.
55
"version": "2.0.0",

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
## Project Overview
1111

12-
Ten Second Tom is a modern CLI application built with **C# and .NET 9**, following **Vertical Slice Architecture (VSA)** with the **Co-location Pattern**. All architectural principles are defined in the constitution.
12+
Ten Second Tom is a modern CLI application built with **C# and .NET 10**, following **Vertical Slice Architecture (VSA)** with the **Co-location Pattern**. All architectural principles are defined in the constitution.
1313

1414
## Core Technology Stack
1515

1616
```text
17-
Language: C# 12+ with .NET 9
17+
Language: C# 14 with .NET 10
1818
CLI: System.CommandLine 2.0-rc
1919
UI: Spectre.Console 0.51.1
2020
CQRS: MediatR 13.1.0

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
## Project Overview
66

7-
Ten Second Tom is a modern CLI application built with **C# and .NET 9**, following **Vertical Slice Architecture (VSA)** with strict adherence to the principles defined in the constitution.
7+
Ten Second Tom is a modern CLI application built with **C# and .NET 10**, following **Vertical Slice Architecture (VSA)** with strict adherence to the principles defined in the constitution.
88

99
## Quick Links
1010

@@ -14,7 +14,7 @@ Ten Second Tom is a modern CLI application built with **C# and .NET 9**, followi
1414
## Core Technology Stack
1515

1616
```text
17-
Language: C# 12+ with .NET 9
17+
Language: C# 14 with .NET 10
1818
CLI: System.CommandLine 2.0-rc
1919
UI: Spectre.Console 0.51.1
2020
CQRS: MediatR 13.1.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extensions:
99

1010
dotnet: extensions
1111
@echo "Building .NET Application..."
12-
@dotnet build -f net9.0 src/TenSecondTom.csproj
12+
@dotnet build -f net10.0 src/TenSecondTom.csproj
1313

1414
clean:
1515
@echo "Cleaning..."

0 commit comments

Comments
 (0)