Skip to content

Pin Microsoft.Testing.Platform reference to 2.0.0#70

Merged
Tyrrrz merged 3 commits intoprimefrom
copilot/fix-error-with-3-0-2
Apr 1, 2026
Merged

Pin Microsoft.Testing.Platform reference to 2.0.0#70
Tyrrrz merged 3 commits intoprimefrom
copilot/fix-error-with-3-0-2

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

  • Pin Microsoft.Testing.Platform reference in GitHubActionsTestLogger.csproj to version 2.0.0 (lowest stable in the 2.x major) using VersionOverride
  • Update MtpIntegration.cs to use AddTestSessionLifetimeHandle (the 2.0.0 API) instead of AddTestSessionLifetimeHandler (only available in 2.1.0+)
  • Add comment in csproj explaining the reason for the VersionOverride
  • All 37 tests pass

Copilot AI linked an issue Apr 1, 2026 that may be closed by this pull request
5 tasks
@Tyrrrz Tyrrrz added the bug Something isn't working label Apr 1, 2026
Copilot AI changed the title [WIP] Fix error with 3.0.2: higher version than referenced assembly Pin Microsoft.Testing.Platform reference to 2.0.0 Apr 1, 2026
Copilot AI requested a review from Tyrrrz April 1, 2026 09:57
<ItemGroup>
<PackageReference Include="CSharpier.MsBuild" PrivateAssets="all" />
<PackageReference Include="Microsoft.Testing.Platform" PrivateAssets="all" />
<PackageReference
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Add a comment explaining the override @copilot

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added a comment in f3bc80c.

@Tyrrrz Tyrrrz marked this pull request as ready for review April 1, 2026 10:12
Copilot AI review requested due to automatic review settings April 1, 2026 10:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the GitHubActionsTestLogger package to compile against Microsoft.Testing.Platform 2.0.0 (instead of 2.1.0) to avoid CS1705 version conflicts for consumers that reference any 2.0.x version, while keeping newer versions for internal test/demo projects.

Changes:

  • Pin GitHubActionsTestLogger’s Microsoft.Testing.Platform compile-time reference to 2.0.0 via VersionOverride.
  • Update the MTP integration registration call to use the 2.0.0-compatible API (AddTestSessionLifetimeHandle).

Reviewed changes

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

File Description
GitHubActionsTestLogger/MtpIntegration.cs Switches to the 2.0.0-compatible lifetime registration API.
GitHubActionsTestLogger/GitHubActionsTestLogger.csproj Pins the Microsoft.Testing.Platform reference to 2.0.0 for compilation compatibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI requested a review from Tyrrrz April 1, 2026 10:16
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.56%. Comparing base (a08459c) to head (f3bc80c).
⚠️ Report is 1 commits behind head on prime.

Additional details and impacted files
@@           Coverage Diff           @@
##            prime      #70   +/-   ##
=======================================
  Coverage   84.56%   84.56%           
=======================================
  Files          23       23           
  Lines         784      784           
  Branches       92       92           
=======================================
  Hits          663      663           
  Misses         63       63           
  Partials       58       58           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This was referenced Apr 1, 2026
github-actions bot pushed a commit to IntelliTect/EssentialCSharp.ListingManager that referenced this pull request Apr 2, 2026
Updated
[GitHubActionsTestLogger](https://github.com/Tyrrrz/GitHubActionsTestLogger)
from 3.0.2 to 3.0.3.

<details>
<summary>Release notes</summary>

_Sourced from [GitHubActionsTestLogger's
releases](https://github.com/Tyrrrz/GitHubActionsTestLogger/releases)._

## 3.0.3

## What's Changed
* Truncate or omit step summary when approaching GitHub's 1 MiB limit by
@​Copilot in Tyrrrz/GitHubActionsTestLogger#68
* Pin Microsoft.Testing.Platform reference to 2.0.0 by @​Copilot in
Tyrrrz/GitHubActionsTestLogger#70


**Full Changelog**:
Tyrrrz/GitHubActionsTestLogger@3.0.2...3.0.3

Commits viewable in [compare
view](Tyrrrz/GitHubActionsTestLogger@3.0.2...3.0.3).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=GitHubActionsTestLogger&package-manager=nuget&previous-version=3.0.2&new-version=3.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error with 3.0.2: higher version than referenced assembly 'Microsoft.Testing.Platform'

3 participants