Skip to content

Bump http-client-csharp TCGC dependency to 0.71.2 - #11739

Merged
JoshLove-msft merged 4 commits into
mainfrom
copilot/bump-tcgc-to-0712
Aug 25, 2026
Merged

Bump http-client-csharp TCGC dependency to 0.71.2#11739
JoshLove-msft merged 4 commits into
mainfrom
copilot/bump-tcgc-to-0712

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Updates http-client-csharp to TCGC 0.71.2 and regenerates its libraries.

  • Dependencies

    • Bump the development and peer dependency versions.
    • Refresh package-lock.json.
  • Decorator migration

    • Add the required "csharp" scope to @convenientAPI and @protocolAPI usages.
@convenientAPI(false, "csharp")
@protocolAPI(false, "csharp")

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI linked an issue Aug 21, 2026 that may be closed by this pull request
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Aug 21, 2026
Copilot AI changed the title [WIP] Bump TCGC to version 0.71.2 and update dependencies Bump http-client-csharp TCGC dependency to 0.71.2 Aug 21, 2026
@pkg-pr-new

pkg-pr-new Bot commented Aug 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-csharp@11739

commit: ff4aa1b

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot we need to address the spector tests failures. Re-generate all the test libraries as well

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the meta:website TypeSpec.io updates label Aug 21, 2026

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Copilot we need to address the spector tests failures. Re-generate all the test libraries as well

Regenerated all test libraries and committed the resulting generated reference update in 1f6f7a64. A second full Generate.ps1 run plus Check-GitChanges.ps1 is clean.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot we need to regenerate all the test libraries as there are still CI failures:

D:\a\_work\1\s\packages\http-client-csharp\eng\scripts\Test-Packages.ps1 : Generated code is not up to date. Please run: eng/Generate.ps1
At D:\a\_work\_temp\1eda050a-e80f-4721-b1e6-07ae746c28a1.ps1:4 char:1
+ . 'D:\a\_work\1\s\packages\http-client-csharp\eng\scripts\Test-Packag …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Test-Packages.ps1
##[error]PowerShell exited with code '1'.

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>

Copilot AI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Copilot we need to regenerate all the test libraries as there are still CI failures:

Regenerated the full test-library set and traced the Windows-only failure to the generated package README, which Linux had emitted under different casing. Committed the missing README update in ff4aa1bf; Check-GitChanges.ps1 now passes cleanly.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the @typespec/http-client-csharp package to use @azure-tools/typespec-client-generator-core (TCGC) 0.71.2, and applies the corresponding decorator-scope migration required by the newer TCGC behavior.

Changes:

  • Bumps @azure-tools/typespec-client-generator-core to 0.71.2 in both peer + dev deps and refreshes package-lock.json.
  • Migrates @convenientAPI / @protocolAPI usages in sample TypeSpec projects and unit tests to include the "csharp" scope argument.
  • Updates the api-version option documentation wording for multi-service / namespace maps.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
website/src/content/docs/docs/emitters/clients/http-client-csharp/reference/emitter.md Updates api-version option documentation wording for multi-service version selection.
packages/http-client-csharp/readme.md Mirrors the api-version documentation update in the package README.
packages/http-client-csharp/package.json Bumps TCGC peer + dev dependency versions to 0.71.2.
packages/http-client-csharp/package-lock.json Refreshes lockfile entries for the TCGC 0.71.2 bump.
packages/http-client-csharp/generator/TestProjects/Plugin/Sample-TypeSpec/Sample-TypeSpec.tsp Adds "csharp" scope to @convenientAPI / @protocolAPI usages in plugin sample TypeSpec.
packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/Sample-TypeSpec.tsp Adds "csharp" scope to @convenientAPI / @protocolAPI usages in local sample TypeSpec.
packages/http-client-csharp/emitter/test/Unit/usage.test.ts Updates in-test TypeSpec snippets to include "csharp" scope for @convenientAPI.
packages/http-client-csharp/emitter/test/Unit/operation-paging.test.ts Updates paging unit test TypeSpec snippets to include "csharp" scope for @convenientAPI.
Files not reviewed (1)
  • packages/http-client-csharp/package-lock.json: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/http-client-csharp/readme.md
@azure-sdk-automation

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@JoshLove-msft
JoshLove-msft added this pull request to the merge queue Aug 25, 2026
Merged via the queue into main with commit 3e0ad33 Aug 25, 2026
43 checks passed
@JoshLove-msft
JoshLove-msft deleted the copilot/bump-tcgc-to-0712 branch August 25, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp meta:website TypeSpec.io updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump TCGC to 0.71.2

5 participants