Skip to content

#258 Replace deprecated Microsoft.Extensions.ApiDescription.Client with NSwag CLI tooling - #303

Draft
ChaitanyaRangu wants to merge 1 commit into
RWS:masterfrom
ChaitanyaRangu:fix/issue-258
Draft

ChaitanyaRangu wants to merge 1 commit into
RWS:masterfrom
ChaitanyaRangu:fix/issue-258

Conversation

@ChaitanyaRangu

Copy link
Copy Markdown

What does this change do?

Replaces the deprecated Microsoft.Extensions.ApiDescription.Client (and the NSwag.ApiDescription.Client package that depended on it) with a pinned NSwag CLI local tool. Options from <OpenApiReference> moved to OpenApiAM10.nswag / OpenApiISH30.nswag; a shared GenerateNSwagClient.targets runs dotnet tool restore + dotnet nswag run before compile. Dependabot ignore for the removed package dropped; release notes updated.

Linked issue

Closes #258

How was it tested?

  • Built both OpenAPI projects (Release, .NET SDK 10.0.404, macOS): 0 warnings, 0 errors; incremental rebuild skips generation.
  • Generated OpenApiAM10Client.cs / OpenApiISH30Client.cs are byte-identical (cmp) to those produced before the change, so no cmdlet changes.
  • Trisoft.ISHRemote.csproj -f net10.0 builds. Not run: full Windows solution build (net48), Release warnings-as-errors for the whole sln, Pester (needs live server).

AI assistance

Prepared with Claude Code (Claude Sonnet 5.5); changes and verification were reviewed by the submitter's tooling run, not by a live-server test.

… with NSwag CLI tooling

Remove Microsoft.Extensions.ApiDescription.Client and NSwag.ApiDescription.Client
from OpenApiAM10 and OpenApiISH30. Move the inline <Options> into standalone
OpenApi*.nswag files and generate the clients with the pinned local tool
NSwag.ConsoleCore (.config/dotnet-tools.json) via a shared MSBuild target
before compilation. Generated clients are byte-identical to before.
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.

Replace deprecated Microsoft.Extensions.ApiDescription.Client with NSwag CLI tooling

1 participant