Skip to content

CI/CD: install .NET 6 (matches binding TFM after LOC-6563)#58

Merged
yashdsaraf merged 1 commit into
masterfrom
LOC-6563-fix-ci-dotnet6
Jun 4, 2026
Merged

CI/CD: install .NET 6 (matches binding TFM after LOC-6563)#58
yashdsaraf merged 1 commit into
masterfrom
LOC-6563-fix-ci-dotnet6

Conversation

@yashdsaraf

@yashdsaraf yashdsaraf commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Post-merge hotfix for LOC-6563. PR #57 dropped the binding's <TargetFramework> from net7.0 to net6.0 (commit d968e36) so the SDK could keep its .NET 6 consumers. The GitHub Actions workflows still install dotnet-version: 7.0.410, so dotnet test BrowserStackLocalIntegrationTests fails to launch — the test DLL is now net6.0 and the runner only has 7.0.20 / 8.0.x / 9.0.x / 10.0.8 installed.

Failure observed in CI

Testhost process for source(s) '...\BrowserStackLocalIntegrationTests.dll' exited with error:
  You must install or update .NET to run this application.
  Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
  The following frameworks were found:
    7.0.20, 8.0.6, 8.0.22, 8.0.27, 9.0.6, 9.0.16, 10.0.8

Fix

Bump actions/setup-dotnet@v3 install version from 7.0.4106.0.x in both ci.yml and cd.yml. msbuild steps still use the runner's pre-installed Visual Studio / SDK 10.x, unaffected.

Test plan

  • Merge → re-run the failed CD action → dotnet test BrowserStackLocalIntegrationTests should now find the 6.0 runtime and proceed to launch the testhost
  • CI workflow on a follow-up PR should also pass

🤖 Generated with Claude Code

PR #57 dropped the binding's <TargetFramework> from net7.0 to net6.0
(commit d968e36) so the SDK could keep its .NET 6 consumers. The
GitHub Actions workflows still install `dotnet-version: 7.0.410`,
which means `dotnet test BrowserStackLocalIntegrationTests` can't
launch the net6.0 test host — failing with:

  Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
  The following frameworks were found:
    7.0.20, 8.0.6, 8.0.22, 8.0.27, 9.0.6, 9.0.16, 10.0.8

Switch setup-dotnet@v3 to install 6.0.x in both ci.yml and cd.yml
so the integration test host can find the .NET 6 runtime it was
built against.

CI workflow run that surfaced this:
https://github.com/browserstack/browserstack-local-csharp/actions

Tracks LOC-6563.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@yashdsaraf yashdsaraf requested a review from a team as a code owner June 4, 2026 22:21
@yashdsaraf yashdsaraf merged commit 085ce6a into master Jun 4, 2026
3 checks passed
@yashdsaraf yashdsaraf deleted the LOC-6563-fix-ci-dotnet6 branch June 4, 2026 22:22
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