apiclientcodegen icon indicating copy to clipboard operation
apiclientcodegen copied to clipboard

Upgrade CLI tool to .NET 10

Open Copilot opened this issue 3 months ago • 2 comments

Upgrades the CLI tool runtime from .NET 8 to .NET 10 and ensures GitHub Actions workflows support the new version.

Changes

Core Projects

  • CLI and all test projects: net8.0net10.0 target framework
  • global.json: SDK version 6.0.42810.0.100

CI/CD Workflows Added 10.0.x to .NET setup steps in:

  • unit-tests.yml, smoke-tests.yml
  • regression-tests.yml (3 jobs: C#, JMeter, TypeScript)
  • production-tests.yml (3 jobs: C#, JMeter, TypeScript)
  • vscode.yml, release.yml

Documentation

  • README.md, docs/CLI.md: Updated runtime requirement to .NET 10.0

Backward Compatibility

Workflows maintain support for .NET 2.1.x through 10.0.x. Only the CLI tool itself requires .NET 10 runtime.

[!WARNING]

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • collector.exceptionless.io
    • Triggering command: refitter --settings-file /home/REDACTED/work/apiclientcodegen/apiclientcodegen/src/Swagger.refitter --simple-output (dns block)
  • heartbeat.exceptionless.io
    • Triggering command: refitter --settings-file /home/REDACTED/work/apiclientcodegen/apiclientcodegen/src/Swagger.refitter --simple-output (dns block)
  • petstore.swagger.io
    • Triggering command: /usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/apiclientcodegen/apiclientcodegen/src/Core/ApiClientCodeGen.Core.Tests/bin/Debug/net10.0/ApiClientCodeGen.Core.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/apiclientcodegen/apiclientcodegen/src/Core/ApiClientCodeGen.Core.Tests/bin/Debug/net10.0/ApiClientCodeGen.Core.Tests.deps.json /home/REDACTED/work/apiclientcodegen/apiclientcodegen/src/Core/ApiClientCodeGen.Core.Tests/bin/Debug/net10.0/testhost.dll --port 32959 --endpoint 127.0.0.1:032959 --role client --parentprocessid 4315 --telemetryoptedin false (dns block)
  • westeurope-5.in.applicationinsights.azure.com
    • Triggering command: refitter --settings-file /home/REDACTED/work/apiclientcodegen/apiclientcodegen/src/Swagger.refitter --simple-output (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Upgrade the CLI tool to run on .NET 10. Ensure that the Github workflows are all compatible with .NET 10. Update the software requirements in the README files to indicate that .NET 10 is needed to run the tool


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot avatar Nov 17 '25 13:11 Copilot