Skip to content

chore(backend): remove unused Asp.Versioning.Mvc.ApiExplorer package - #496

Merged
fpindej merged 1 commit into
masterfrom
chore/remove-unused-asp-versioning
Jun 1, 2026
Merged

chore(backend): remove unused Asp.Versioning.Mvc.ApiExplorer package#496
fpindej merged 1 commit into
masterfrom
chore/remove-unused-asp-versioning

Conversation

@fpindej

@fpindej fpindej commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Context

While reviewing the open Dependabot PRs, #487 proposed bumping Asp.Versioning.Mvc.ApiExplorer 8.1.1 -> 10.0.0 (a major bump carrying a breaking OpenAPI change: api-version params emitted as enum instead of default).

Investigation found the package is dead code: declared in Directory.Packages.props and referenced in MyProject.WebApi.csproj, but never used anywhere -- no AddApiVersioning(), no [ApiVersion] attributes, no ApiExplorer / IApiVersionDescriptionProvider wiring. API versioning is not configured, so the package contributes nothing to the build or the OpenAPI document.

Rather than bump an unused dependency (and inherit its breaking change), this PR removes it.

Change

  • Drop Asp.Versioning.Mvc.ApiExplorer from Directory.Packages.props
  • Drop the <PackageReference> from MyProject.WebApi.csproj

Two lines, purely subtractive.

Verification

  • dotnet build -c Release: 0 warnings, 0 errors
  • dotnet test -c Release: 1042 passed, 0 failed (Unit 97, Architecture 10, Component 541 +14 skipped, Api 394)

Follow-up

Supersedes Dependabot #487, which will be closed in favour of this removal.

🤖 Generated with Claude Code

The package was declared in Directory.Packages.props and referenced in
MyProject.WebApi.csproj but never used anywhere in the codebase - no
AddApiVersioning() registration, no [ApiVersion] attributes, no ApiExplorer
or IApiVersionDescriptionProvider wiring. API versioning is not configured,
so the package contributed nothing to the build or the OpenAPI output.

Removing it as dead code. Supersedes Dependabot PR #487 (which bumped this
unused dependency 8.1.1 -> 10.0.0). Backend build and full test suite
(1042 passed, 0 failed) verified green after removal.
@fpindej
fpindej merged commit 699d8b6 into master Jun 1, 2026
6 checks passed
@fpindej
fpindej deleted the chore/remove-unused-asp-versioning branch June 1, 2026 12:55
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