Skip to content

Fix VC debugger launcher packaging for Dev18 - #8649

Open
Stella Huang (StellaHuang95) wants to merge 4 commits into
microsoft:mainfrom
StellaHuang95:stellahuang-microsoft-fix-vc-debugger-packaging
Open

Stella Huang (StellaHuang95) wants to merge 4 commits into
microsoft:mainfrom
StellaHuang95:stellahuang-microsoft-fix-vc-debugger-packaging

Conversation

@StellaHuang95

@StellaHuang95 Stella Huang (StellaHuang95) commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary - Select exactly one VC targets directory from $(VSTarget) through $(VCTargetVersion) for props, targets, base XAML, and localized XAML. - Remove duplicate source identities that caused VSIX packaging to retain the first v170 destination in Dev18 builds. - Keep the Dev17 package scoped to [17.0,18.0) and bump the corrected Dev18 VSIX to 18.0.1 so existing 18.0 installations are eligible for upgrade. - Add CI validation for base and localized VC debugger launcher VSIX contents, including a PR-time localized rebuild. ## Verification - Built VCDebugLauncher.csproj/vsix.proj for VSTarget=17.0 and 18.0 with VS17 MSBuild, matching the release build environment. - Verified Dev17 keeps 6 base launcher entries under v170; the base payload bytes and relative paths match the pre-change VSIX. - Verified Dev18 contains 6 base entries under v180 and no v170 launcher entries. - Rebuilt setup VSIXes with representative localized outputs: exactly 26 localized XAML entries per target, covering all 13 LCIDs from Build/VSLanguages.props, paired for Win32/x64, all under the selected VC version. - Verified the validator rejects the broken Dev18 baseline, the old overbroad Dev17 manifest, duplicate payload paths, and a package with both entries for LCID 1041 removed. - Verified the SWIX-copied VSIX is byte-identical to the rebuilt setup VSIX for both targets. - Manual Dev18 Canary check: the installed baseline reproduced the missing option. Using the fixed VSIX payload in a local mirror of the installed v180 targets tree made Python/Native Debugging appear; selecting it exposed the expected five properties, persisted PythonDebugLaunchProvider, and updated the debug toolbar. ## Limitation / risk - The installed Dev18 tree is TrustedInstaller-owned and this session is non-admin, so the unsigned VSIX could not be installed into Program Files to exercise setup file cleanup directly. The Dev18 version bump from 18.0 to 18.0.1 makes the corrected package upgrade-eligible, and the final package contains no stale v170 payload. - The installed Canary image does not contain Microsoft.PythonTools.Debugger.VCLauncher.dll, so launching through the selected provider could not be validated; UI discovery, selection persistence, package layout, and project build were validated. Fixes #8315

CI follow-up

Azure run 15781109 exposed two PR-only validation issues: Windows PowerShell 5.1 rejected empty-array property access, and loclayout.proj was a no-op in fork PR builds because the internal localization MicroBuild plugin is unavailable. The PR path now stages deterministic localization test inputs before rebuilding the VSIX; release builds continue validating real localized setup output. The Test job failure in that run was downstream only: Build did not publish the Binaries artifact after the validator failed.

Select one VC target directory from VSTarget and validate the generated launcher VSIX payload for base and localized content.\n\nFixes microsoft#8315\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>\nCopilot-Session: 1b1ce646-b69b-4b4e-8ee5-afafcae6e339
Fixes microsoft#8315

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1b1ce646-b69b-4b4e-8ee5-afafcae6e339
@StellaHuang95
Stella Huang (StellaHuang95) requested a review from a team as a code owner October 22, 2026 19:32
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@heejaechang

Heejae Chang (heejaechang) commented Oct 22, 2026 •

Copy link
Copy Markdown

🔒 Automated review in progress — Heejae Chang (@heejaechang) is auto-reviewing this PR.

@heejaechang

Copy link
Copy Markdown

Result: 🔴 could-not-verify

Verification details

Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified.

Details: Verification could not complete: timeout must be None or at least 2073600 seconds (24 days); shorter completion deadlines are unsupported.

Test runs: none recorded.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved via Review Center.

@heejaechang Heejae Chang (heejaechang) added the review-auto:approved Automated review: no blocking findings (approval posted). label Oct 22, 2026
Bump the Dev18 VSIX version for upgrades, constrain the Dev17 package to Dev17, and require the complete localized payload during PR and release validation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1b1ce646-b69b-4b4e-8ee5-afafcae6e339
@StellaHuang95

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

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

@heejaechang

Copy link
Copy Markdown

Result: 🔴 could-not-verify

Verification details

Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified.

Details: Verification could not complete: timeout must be None or at least 2073600 seconds (24 days); shorter completion deadlines are unsupported.

Test runs: none recorded.

Stage deterministic localization test content in fork PR builds and handle an empty localized payload under Windows PowerShell 5.1.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1b1ce646-b69b-4b4e-8ee5-afafcae6e339
@StellaHuang95

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

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

@sonarqubecloud

Copy link
Copy Markdown

@bschnurr Bill Schnurr (bschnurr) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved via Review Center.

@rchiodo Rich Chiodo (rchiodo) 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.

Approved via Review Center.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-auto:approved Automated review: no blocking findings (approval posted).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The option "Python/Native Debugging" is missing.

4 participants