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:
|
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