Skip to content

Disable VS sideloading telemetry DLLs to fix BinSkim BA2022 - #609

Merged
alexlamtest merged 1 commit into
mainfrom
user/alexlam/fix-ba2022-telemetry-dlls
Mar 30, 2026
Merged

alexlamtest merged 1 commit into
mainfrom
user/alexlam/fix-ba2022-telemetry-dlls

Conversation

@alexlamtest

@alexlamtest alexlamtest commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Setting AppxLogTelemetryFromSideloadingScript to false prevents VS's MSBuild AppxPackage targets (_AddWindowsInstallScriptToTestLayout) from copying SHA-1 signed telemetry DLLs (Microsoft.Diagnostics.Tracing.EventSource.dll, Microsoft.VisualStudio.Telemetry.dll, etc.) into sample app packages. These DLLs fail BinSkim BA2022 (SignSecurely).

The telemetry DLLs are only used for VS sideloading telemetry collection and are not needed for sample app functionality.

Fix identified and verified by Scott Jones.

Fixes: https://dev.azure.com/microsoft/OS/_workitems/edit/57941542

How built:

  • Redirected the Agg Nightly pipeline to point at this private branch on the Samples repo. The private pipeline run passed.

How tested:

  • In the private pipeline run linked above, no Binskim BA2022 error was found under the Scans tab.

Setting AppxLogTelemetryFromSideloadingScript to false prevents VS's
MSBuild AppxPackage targets from copying SHA-1 signed telemetry DLLs
(Microsoft.Diagnostics.Tracing.EventSource.dll, etc.) into sample app
packages. These DLLs fail BinSkim BA2022 (SignSecurely).

The telemetry DLLs are not needed for sample app functionality - they
are only used for VS sideloading telemetry collection.

Fixes: https://dev.azure.com/microsoft/OS/_workitems/edit/57941542

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@alexlamtest

Copy link
Copy Markdown
Contributor Author

/azp run

@alexlamtest
alexlamtest marked this pull request as draft March 24, 2026 01:14
@alexlamtest
alexlamtest marked this pull request as ready for review March 28, 2026 21:25
@alexlamtest
alexlamtest merged commit d4df394 into main Mar 30, 2026
4 checks passed
@alexlamtest
alexlamtest deleted the user/alexlam/fix-ba2022-telemetry-dlls branch March 30, 2026 20:53
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