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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
GitHubActionsTestLogger NuGet package version 3.0.1 latest💡 Result:
Yes—GitHubActionsTestLogger 3.0.1 is the latest stable release on NuGet, last updated Nov 24, 2025. [1][2]
🌐 Web query:
GitHubActionsTestLogger compatibility Microsoft.NET.Test.Sdk💡 Result:
dotnet test --logger GitHubActions): Your test project should referenceMicrosoft.NET.Test.Sdk>= 16.8.0; older versions may not work correctly with custom loggers likeGitHubActionsTestLogger. [1]Microsoft.NET.Test.Sdkcontinues to be compatible broadly, but note the runner’s own .NET targeting changes below. [2]net6.0: VS Test 17.14 moved to newer .NET versions; guidance is to pinMicrosoft.NET.Test.Sdkto 17.13.0 (or upgrade the test project tonet8.0+). [3]GitHubActionsTestLoggerversions advertise support for both VSTest and MTP. [4] (Historically, MTP didn’t parse--loggerthe same way, which is why older setups could fail.) [5]Sources:
[1] NuGet readme for GitHubActionsTestLogger (versioned page showing the
Microsoft.NET.Test.Sdk >= 16.8.0requirement). (nuget.org)[2] NuGet page for Microsoft.NET.Test.Sdk 17.14.1. (nuget.org)
[3] microsoft/vstest release notes (17.14: net6 projects should pin Microsoft.NET.Test.Sdk to 17.13.0). (github.com)
[4] NuGet page for GitHubActionsTestLogger 3.0.1 (“Extension for VSTest and Microsoft.Testing.Platform”). (nuget.org)
[5] GitHub issue discussing MTP not parsing
--loggerin older versions (context for compatibility problems). (github.com)Citations:
Microsoft.Testing.PlatformTyrrrz/GitHubActionsTestLogger#41🌐 Web query:
GitHubActionsTestLogger PrivateAssets all recommended test project💡 Result:
For GitHubActionsTestLogger, the recommended way to reference it from a test project is to mark it as test-only so it doesn’t flow transitively to other projects/packages:
NuGet’s own snippet for this package also uses
<PrivateAssets>all</PrivateAssets>(and sometimes an explicitIncludeAssetslist) for the same reason: keep the logger available to the test project, but prevent it from becoming a transitive dependency of anything that references the test project. [1]If you follow NuGet’s “full” form (as shown on older version pages), it looks like this:
That
IncludeAssetsis not redundant because it can exclude assets likecompile(even whenPrivateAssets=all). [2]Source(s): NuGet package page for GitHubActionsTestLogger (shows the recommended PackageReference, including
PrivateAssetsand sometimesIncludeAssets) [1]; explanation ofPrivateAssetsvsIncludeAssetsbehavior [2].References:
[1] NuGet Gallery – GitHubActionsTestLogger (latest) https://www.nuget.org/packages/GitHubActionsTestLogger
[2] Stack Overflow – “If a nuget specifies PrivateAssets=all why specify IncludeAssets?” https://stackoverflow.com/questions/73180516/if-a-nuget-specifies-privateassets-all-why-specify-includeassets
Add
PrivateAssets="all"to isolate test logger from transitive dependencies.The package reference should be updated to prevent the logger from flowing transitively:
Suggested change
🤖 Prompt for AI Agents