Skip to content

Fix wording of VSTEST_ARTIFACTS_DIRECTORY fallback warning - #16797

Merged
Azat Mukhametshin (azat-msft) merged 2 commits into
microsoft:mainfrom
azat-msft:azat-msft-fix-artifacts-dir-warning-wording
Dec 3, 2026
Merged

Azat Mukhametshin (azat-msft) merged 2 commits into
microsoft:mainfrom
azat-msft:azat-msft-fix-artifacts-dir-warning-wording

Conversation

@azat-msft

Copy link
Copy Markdown
Member

The warning blamed an outdated Microsoft.NET.Test.Sdk package reference, but VSTEST_ARTIFACTS_DIRECTORY is set by the .NET SDK's dotnet test, which also picks the vstest.console it runs. The warning now points to an outdated .NET SDK, or to a newer vstest.console started by an older SDK (for example, through VSTestConsolePath).

The variable is set by the .NET SDK's dotnet test, not by Microsoft.NET.Test.Sdk.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the warning-text clarification.

No open issues 🎉

What changed in this PR

Clarifies VSTest’s artifact-directory fallback warning to point users toward SDK/tooling mismatches rather than an outdated test-project package.

Changes:

  • Replaces the Microsoft.NET.Test.Sdk explanation with an outdated .NET SDK or a newer vstest.console selected through VSTestConsolePath.
  • Changes warning text only; fallback behavior remains unchanged.
File Description
src/​Microsoft.TestPlatform.CrossPlatEngine/​PostProcessing/​ArtifactProcessingManager.cs Corrects the missing VSTEST_ARTIFACTS_DIRECTORY warning’s explanation.

Review effort: Balanced

@azat-msft

Copy link
Copy Markdown
Member Author

/azp run microsoft.vstest

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 10:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the warning-guidance update.

No open issues 🎉

Review effort: Balanced

@azat-msft
Azat Mukhametshin (azat-msft) merged commit bd8a632 into microsoft:main Dec 3, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants