Commit 490b1ea
authored
chore: upgrade to .NET 10, migrate to .slnx, bump to 0.4.0-alpha.1 (#19)
## Summary
First branch of the 0.4 cycle. Bumps every TargetFramework from `net9.0`
→ `net10.0`, renames the demo folder `NET9/` → `NET10/`, migrates the
solution to the new `.slnx` XML format, removes the
`EnableStaticWebAssetsCompression=false` workaround (the .NET 10 SDK
fixed the underlying bug), and bumps the centralized version to
`0.4.0-alpha.1`.
Single-target `net10.0` for simplicity. `net9.0` STS reaches EOL this
month; `net8.0` LTS users can stay on the `0.3.x` line until they
upgrade. If enterprise demand justifies it later, we can multi-target
`net8.0;net10.0` in a follow-up before 1.0.
C# 14 modernization (`field` keyword, partial constructors, extension
members, etc.) is intentionally **not** in this branch — it'll get its
own dedicated `chore/csharp14-sweep` branch later so the diff is
reviewable.
## Changes
### Framework + tooling
- `global.json` — SDK pin `9.0.100` → `10.0.100`
- `Directory.Build.props` — `0.3.0-rc.1` → `0.4.0-alpha.1`
- All 5 first-party `.csproj`s (`Core`, `Templates`, `CLI`,
`Components`, `Tests`) — `<TargetFramework>net9.0</TargetFramework>` →
`net10.0`
- Both demo `.csproj`s (`BlazorInteractiveServer`, `ShellUI.Preview`) —
same TFM bump
- `Microsoft.AspNetCore.Components.Web` package ref `9.0.6` → `10.0.0`
(Components)
- `Microsoft.AspNetCore.Components.WebAssembly` and `.DevServer` `9.0.0`
→ `10.0.0` (Preview)
- `IntegrationTest1.cs` — hardcoded CLI build path `bin/Release/net9.0/`
→ `bin/Release/net10.0/`
### Solution format migration
- `ShellUI.sln` removed, `ShellUI.slnx` generated via `dotnet sln
ShellUI.sln migrate`. Cleaner XML, much more diffable, no copy-paste
risk:
```xml
<Solution>
<Configurations>
<Platform Name="Any CPU" />
<Platform Name="x64" />
<Platform Name="x86" />
</Configurations>
<Folder Name="/src/">
<Project Path="src/ShellUI.CLI/ShellUI.CLI.csproj" />
<Project Path="src/ShellUI.Components/ShellUI.Components.csproj" />
<Project Path="src/ShellUI.Core/ShellUI.Core.csproj" />
<Project Path="src/ShellUI.Templates/ShellUI.Templates.csproj" />
</Folder>
<Project Path="ShellUI.Tests/ShellUI.Tests.csproj" />
</Solution>
```
- All CI workflow `dotnet restore|build|test|pack ShellUI.sln`
invocations updated to `ShellUI.slnx`
### Demo folder rename
- `NET9/` → `NET10/` (`git mv`, preserves history per the rename
detector). Updated the preview-pages workflow path filters and publish
step accordingly.
### .NET 10 SDK fixed our workaround
- `ShellUI.Components.csproj` —
`<EnableStaticWebAssetsCompression>false</EnableStaticWebAssetsCompression>`
and the `<StaticWebAssetsBuildMode>` line are gone. The original comment
said "(.NET 10 SDK bug workaround)" — confirmed by `dotnet pack` working
clean without them.
### CI workflows
- `.github/workflows/ci.yml` — `dotnet-version: 9.0.x` → `10.0.x`,
`.sln` → `.slnx`
- `.github/workflows/release.yml` — same
- `.github/workflows/preview-pages.yml` — same +
`NET9/ShellUI.Preview/**` path filter → `NET10/ShellUI.Preview/**`
### Docs
- `docs/PROJECT_STATUS.md` — prerequisite `.NET 9.0 SDK` → `.NET 10.0
SDK`, demo path `NET9/BlazorInteractiveServer` → `NET10/`, "Key Decision
#4" rewritten to explain why .NET 10 single-target instead of
multi-target
- `docs/ARCHITECTURE.md` — `NET9/` → `NET10/`
- `docs/tailwind-setup.md` — `.NET 9.0 SDK` → `.NET 10.0 SDK`
## Verification
- `dotnet restore ShellUI.slnx` — clean, all packages resolved on .NET
10
- `dotnet build ShellUI.slnx -c Release` — clean (0 errors, 0 warnings),
packages emitted as `0.4.0-alpha.1.nupkg`
- `dotnet test ShellUI.Tests` — **51/51 unit tests passing on
`net10.0`** (skipping the 2 slow CLI integration tests that need
scaffolded projects — those will run in the CI smoke step)
- `dotnet pack src/ShellUI.Components` without the workaround — clean
pack succeeds; confirms .NET 10 SDK fixed the bug
## Test plan
- [ ] CI green on .NET 10 — build, all unit tests, end-to-end smoke
(scaffold + `shellui init` + `shellui add chart pie-chart dashboard-02
data-table` + `dotnet build` on a real `dotnet new blazor` template)
- [ ] Local: `dotnet new blazor` (which now generates a .NET 10 project)
+ install the prerelease CLI tool from this branch's pack + `shellui
init` + `shellui add` — confirm it still works end-to-end against the
new template
- [ ] Local: open `ShellUI.slnx` in VS 2022 17.10+ and confirm the
solution loads correctly
- [ ] Verify `Blazor-ApexCharts 6.0.2` and `System.Linq.Dynamic.Core
1.7.1` work on .NET 10 (they multi-target down to
`net6.0`/`netstandard2.0`, so they should be fine via roll-forward — the
build success above already proves the resolver picks them up)250 files changed
Lines changed: 49 additions & 136 deletions
File tree
- .github/workflows
- NET10
- BlazorInteractiveServer
- Build
- Components
- Demo
- Layout
- Models
- Pages
- Components
- DataDisplay
- Form
- Overlay
- Services
- UI
- Variants
- Variants
- Properties
- wwwroot
- ShellUI.Preview
- Components
- Layout
- Pages
- Properties
- wwwroot
- css
- sample-data
- ShellUI.Tests
- docs
- src
- ShellUI.CLI
- ShellUI.Components
- ShellUI.Core
- ShellUI.Templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
File renamed without changes.
File renamed without changes.
0 commit comments