From 20c5db0f0358ffdeb64096fe45908bb58a78922a Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Fri, 3 Apr 2026 21:02:53 -0700 Subject: [PATCH] Embed missing System.Text.Json transitive dependencies in PerfView System.Text.Json 9.0.8 has transitive dependencies on System.IO.Pipelines and Microsoft.Bcl.AsyncInterfaces that were not being embedded in the self-extracting PerfView EXE. When these DLLs are absent at runtime, System.Text.Json fails to parse ProcessMappingMetadata JSON, causing all ELF and PE module binary formats to be reported as Unknown. This prevents symbol resolution for Linux .nettrace traces. Add both packages to Directory.Packages.props and embed them as resources in PerfView.csproj alongside the existing System.Text.Json dependencies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/Directory.Packages.props | 2 ++ src/PerfView/PerfView.csproj | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 41b8f41e7..9fd7d9490 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -36,6 +36,8 @@ + + diff --git a/src/PerfView/PerfView.csproj b/src/PerfView/PerfView.csproj index e4dacf3b4..c5c320e62 100644 --- a/src/PerfView/PerfView.csproj +++ b/src/PerfView/PerfView.csproj @@ -106,6 +106,8 @@ + + @@ -633,6 +635,20 @@ System.Security.Cryptography.ProtectedData.dll False + + Non-Resx + false + .\Microsoft.Bcl.AsyncInterfaces.dll + Microsoft.Bcl.AsyncInterfaces.dll + False + + + Non-Resx + false + .\System.IO.Pipelines.dll + System.IO.Pipelines.dll + False + Non-Resx false