Skip to content

[rel/18.12] Ship Microsoft.Diagnostics.NETCore.Client in Microsoft.TestPlatform and Portable packages - #16633

Merged
Jakub Jareš (nohwnd) merged 1 commit into
microsoft:rel/18.12from
nohwnd:nohwnd-hangdump-client-dll-18.12
Nov 4, 2026
Merged

Jakub Jareš (nohwnd) merged 1 commit into
microsoft:rel/18.12from
nohwnd:nohwnd-hangdump-client-dll-18.12

Conversation

@nohwnd

Copy link
Copy Markdown
Member

Backport of #16630 to rel/18.12.

Description

/Blame:CollectHangDump fails when the Microsoft.TestPlatform package console (net462) drives a .NET testhost:

Could not load file or assembly 'Microsoft.Diagnostics.NETCore.Client, Version=0.2.14.41219 ...'
Collect dump was enabled but no dump file was generated.

BlameDataCollector needs Microsoft.Diagnostics.NETCore.Client.dll to dump .NET testhosts, but only Microsoft.TestPlatform.CLI shipped it. Microsoft.TestPlatform and Microsoft.TestPlatform.Portable did not.

Now both packages put the DLL next to Microsoft.TestPlatform.Extensions.BlameDataCollector.dll. eng/expected-nupkg-file-counts.json and eng/expected-dll-frameworks.json are regenerated by a clean Release -pack build.

We did not catch it because HangDumpOnTimeout was pinned to the .NET console, which comes from the CLI package. It now runs with both consoles and both testhosts. Before the packaging change the net462 console + .NET testhost row failed with the error above, now all 4 rows pass (1m 30s).

Related issue

Reported by email, no issue filed.

  • I have ensured that there is a previously discussed and approved issue.

The two expected-*.json files were regenerated on this branch by a Release pack build, and HangDumpOnTimeout is the same test matrix as in #16630.

🤖

…nd Portable packages

BlameDataCollector needs it to create hang dumps of .NET testhosts. Only
Microsoft.TestPlatform.CLI shipped it, so the net462 console failed with
FileNotFoundException. Run HangDumpOnTimeout with both consoles and testhosts.

Co-authored-by: Copilot App <[email protected]>
@nohwnd
Jakub Jareš (nohwnd) enabled auto-merge (squash) November 4, 2026 12:56
@nohwnd
Jakub Jareš (nohwnd) merged commit 7dce0e6 into microsoft:rel/18.12 Nov 4, 2026
22 checks passed
This was referenced Nov 12, 2026
ptr727-codegen Bot pushed a commit to ptr727/Utilities that referenced this pull request Nov 12, 2026
Updated [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest)
from 18.11.1 to 18.12.0.

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

_Sourced from [Microsoft.NET.Test.Sdk's
releases](https://github.com/microsoft/vstest/releases)._

## 18.12.0

## Security fix

This release includes the fix for CVE-2026-105544, an elevation of
privilege vulnerability in the VSTest artifact post-processor. The
post-processor could consume a forged `executionComplete.json` written
by another local user, and then run attacker-controlled output handling.

Affected: `Microsoft.TestPlatform.CLI` 18.11.0 and earlier. Every
version from 18.11.1 on is fixed, including 18.12.0.

`Microsoft.TestPlatform.CLI` is the VSTest build that we ship into the
.NET SDK. The recommended way to get this fix is to update your .NET SDK
to the latest patched version, see the advisory for the SDK versions.

The fix is also released in the `Microsoft.TestPlatform.CLI` package,
for completeness. That package is rarely used directly. It is not a
dependency of `Microsoft.NET.Test.Sdk` or `Microsoft.TestPlatform`, so
those packages do not bring it in.

Details: microsoft/vstest#16654 and
dotnet/announcements#517

Using custom Docker images or Nano Server? See
microsoft/vstest#16652

## What's Changed
* Fix TestCaseStart/Stop events dropped for data-driven tests with
shared TestCase.Id by @​nohwnd in
microsoft/vstest#16033
* Stop the discovery manager factory from shadowing discoveryCriteria by
@​nohwnd in microsoft/vstest#16391
* Gate the HTTP link checker on a fingerprint of the broken links by
@​nohwnd in microsoft/vstest#16413
* Quote boolean conditions in shipped Microsoft.TestPlatform.targets by
@​nohwnd in microsoft/vstest#16404
* Obsolete API hygiene: the compatibility-safe changes by @​azat-msft in
microsoft/vstest#16420
* Add xxHash128 test ids, available but not default by @​azat-msft in
microsoft/vstest#16378
* Isolate attachment manager test temporary files by @​mmitche in
microsoft/vstest#16463
* Test ids report logger by @​azat-msft in
microsoft/vstest#16443
* Isolate code coverage files in published output by @​azat-msft in
microsoft/vstest#16483
* Preserve OutputType for Android test projects by @​jonathanpeppers in
microsoft/vstest#16496
* Fix dotnet host resolution under proot (ARM64/Termux) by @​azat-msft
in microsoft/vstest#16462
* Mark the xxHash128 test id API as experimental by @​azat-msft in
microsoft/vstest#16465
* Ship Microsoft.Diagnostics.NETCore.Client in Microsoft.TestPlatform
and Portable packages by @​nohwnd in
microsoft/vstest#16633
* Fix localized resource paths in CLI source-build/non-Windows packages
by @​nohwnd in microsoft/vstest#16644


**Full Changelog**:
microsoft/vstest@v18.11.0...v18.12.0



Commits viewable in [compare
view](microsoft/vstest@v18.11.1...v18.12.0).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Microsoft.NET.Test.Sdk&package-manager=nuget&previous-version=18.11.1&new-version=18.12.0)](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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Nov 25, 2026
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.

2 participants