Skip to content

main doesn't build since #81: Core's new Microsoft.Extensions.Logging.Abstractions 11.0.0 reference fails the Site with KTSU0006 #82

Open

Description

@matt-edmondson

What's wrong

Dependabot PR #81 (commit 8a5481f, "Bump the microsoft group with 1 update") made two changes:

  • In Directory.Packages.props:10, it bumped Microsoft.Extensions.Logging.Abstractions to 11.0.0.
  • In CounterStrikeProgression.Core/CounterStrikeProgression.Core.csproj:18, it added a direct reference:
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="11.0.0" />

Core doesn't use that package: there is no Microsoft.Extensions.Logging usage under CounterStrikeProgression.Core/.

The reference flows through to CounterStrikeProgression.Site, where it replaces the ASP.NET Core 10 shared-framework copy. ktsu.Sdk then fails the build with KTSU0006 at:

  • CounterStrikeProgression.Site/MetricsEndpoints.cs(22,38), for Microsoft.Extensions.DependencyInjection.Abstractions
  • CounterStrikeProgression.Site/Live/LiveState.cs(28,97), for Microsoft.Extensions.Logging.Abstractions

Impact

  • dotnet build and dotnet test fail at HEAD (2a7d412).
  • The parent commit c639d93 builds, and its full suite passes (741 passed, 7 MySQL tests skipped).
  • The scheduled .NET Workflow on main (run 42920422796, 2026-11-10 23:05 UTC) fails with these errors on both Ubuntu and Windows. No release can be cut until this is fixed.
  • The PR's own .NET Workflow run had already failed, yet Bump the microsoft group with 1 update #81 was merged.

Major-bumping this package is risky for the plugin as well. The plugin compiles against it with ExcludeAssets=runtime, and the CounterStrikeSharp host supplies the runtime copy.

Suggested fix

  • Remove the Microsoft.Extensions.Logging.Abstractions PackageReference from CounterStrikeProgression.Core.csproj.
  • Set the central PackageVersion back to 10.0.0, to match the host and the ASP.NET Core 10 framework.
  • Add a Dependabot ignore rule for version-update:semver-major on this package (or on the whole microsoft group). Major versions should follow the target framework, not arrive one at a time.

Acceptance criteria

  • dotnet build and dotnet test --project CounterStrikeProgression.Test succeed on main.
  • The scheduled .NET Workflow on main is green.
  • Dependabot no longer proposes major bumps of the Microsoft.Extensions packages.

Activity

  1. added
    bug
    dependencies
    on Nov 11, 2026
  2. matt-edmondson commented on Nov 11, 2026

    @matt-edmondson
    ContributorAuthor

    Triage

    Suggested next step: revert the Core reference and set the version back to 10.0.0 in one PR. Add the semver-major ignore rule in the same PR.


    Generated by Claude Code

  3. added a commit that references this issue on Nov 11, 2026
    fdf43ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdependencies

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions