Skip to content

fix: update target framework from net8.0 to net10.0#27

Merged
phmatray merged 1 commit intomainfrom
fix/action-build
Feb 28, 2026
Merged

fix: update target framework from net8.0 to net10.0#27
phmatray merged 1 commit intomainfrom
fix/action-build

Conversation

@phmatray
Copy link
Contributor

Summary

  • Update Directory.Build.props target framework from net8.0 to net10.0 (fixes CI build failure)
  • Update C# LangVersion from 12 to 14 to match .NET 10
  • Update AnalysisLevel from 8.0-recommended to 10.0-recommended
  • Update NuGet metadata (description, tags, copyright year) to reflect .NET 10

Root Cause

CI was failing with:

error NU1202: Package Microsoft.AspNetCore.Components.Web 10.0.3 is not compatible with net8.0

The shared Directory.Build.props still targeted net8.0 while dependencies (via Renovate) had been upgraded to .NET 10 packages. The global.json and workflow already specified .NET 10 SDK.

Files Changed

File Change
Directory.Build.props TargetFramework net8.0 → net10.0, LangVersion 12 → 14
src/FastComponents/FastComponents.csproj AnalysisLevel, description, tags, copyright

Test plan

  • CI pipeline passes (dotnet pack succeeds)
  • NuGet package builds correctly for net10.0

The project was targeting net8.0 via Directory.Build.props while
depending on Microsoft.AspNetCore.Components.Web 10.0.3 which
requires net10.0, causing CI build failures (NU1202).

Changes:
- Directory.Build.props: TargetFramework net8.0 → net10.0
- Directory.Build.props: LangVersion 12 → 14
- FastComponents.csproj: AnalysisLevel 8.0 → 10.0-recommended
- FastComponents.csproj: Update description/tags from net8 to net10
- FastComponents.csproj: Update copyright year to 2026
@phmatray phmatray merged commit c2c3e2e into main Feb 28, 2026
3 of 4 checks passed
@phmatray phmatray deleted the fix/action-build branch February 28, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant