Skip to content

Disable VS sideloading telemetry DLLs to fix BinSkim BA2022#609

Open
alexlamtest wants to merge 1 commit intomainfrom
user/alexlam/fix-ba2022-telemetry-dlls
Open

Disable VS sideloading telemetry DLLs to fix BinSkim BA2022#609
alexlamtest wants to merge 1 commit intomainfrom
user/alexlam/fix-ba2022-telemetry-dlls

Conversation

@alexlamtest
Copy link
Copy Markdown
Collaborator

@alexlamtest alexlamtest commented Mar 24, 2026

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
Collaborator 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
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.

1 participant