Pin Microsoft.Testing.Platform reference to 2.0.0#70
Conversation
…eHandle Agent-Logs-Url: https://github.com/Tyrrrz/GitHubActionsTestLogger/sessions/2c799389-28de-48be-9d10-d5d4359c21bd Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
| <ItemGroup> | ||
| <PackageReference Include="CSharpier.MsBuild" PrivateAssets="all" /> | ||
| <PackageReference Include="Microsoft.Testing.Platform" PrivateAssets="all" /> | ||
| <PackageReference |
Agent-Logs-Url: https://github.com/Tyrrrz/GitHubActionsTestLogger/sessions/8f7f1726-dc8d-4200-b581-aa99ec66eae0 Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
There was a problem hiding this comment.
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’sMicrosoft.Testing.Platformcompile-time reference to2.0.0viaVersionOverride. - 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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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> [](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>
Microsoft.Testing.Platformreference inGitHubActionsTestLogger.csprojto version2.0.0(lowest stable in the 2.x major) usingVersionOverrideMtpIntegration.csto useAddTestSessionLifetimeHandle(the 2.0.0 API) instead ofAddTestSessionLifetimeHandler(only available in 2.1.0+)VersionOverride