CI/CD: install .NET 6 (matches binding TFM after LOC-6563)#58
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Post-merge hotfix for LOC-6563. PR #57 dropped the binding's
<TargetFramework>fromnet7.0tonet6.0(commitd968e36) so the SDK could keep its .NET 6 consumers. The GitHub Actions workflows still installdotnet-version: 7.0.410, sodotnet test BrowserStackLocalIntegrationTestsfails to launch — the test DLL is nownet6.0and the runner only has 7.0.20 / 8.0.x / 9.0.x / 10.0.8 installed.Failure observed in CI
Fix
Bump
actions/setup-dotnet@v3install version from7.0.410→6.0.xin bothci.ymlandcd.yml. msbuild steps still use the runner's pre-installed Visual Studio / SDK 10.x, unaffected.Test plan
dotnet test BrowserStackLocalIntegrationTestsshould now find the 6.0 runtime and proceed to launch the testhost🤖 Generated with Claude Code