Repository navigation
Fix VC debugger launcher packaging for Dev18 - #8649
Stella Huang (StellaHuang95) wants to merge 4 commits into
Conversation
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
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
🔒 Automated review in progress — Heejae Chang (@heejaechang) is auto-reviewing this PR. |
|
Result: 🔴 Verification detailsVerification: 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. |
Heejae Chang (heejaechang)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
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
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Result: 🔴 Verification detailsVerification: 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
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Bill Schnurr (bschnurr)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
Rich Chiodo (rchiodo)
left a comment
There was a problem hiding this comment.
Approved via Review Center.



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 firstv170destination in Dev18 builds. - Keep the Dev17 package scoped to[17.0,18.0)and bump the corrected Dev18 VSIX to18.0.1so existing18.0installations are eligible for upgrade. - Add CI validation for base and localized VC debugger launcher VSIX contents, including a PR-time localized rebuild. ## Verification - BuiltVCDebugLauncher.csproj/vsix.projforVSTarget=17.0and18.0with VS17 MSBuild, matching the release build environment. - Verified Dev17 keeps 6 base launcher entries underv170; the base payload bytes and relative paths match the pre-change VSIX. - Verified Dev18 contains 6 base entries underv180and nov170launcher entries. - Rebuilt setup VSIXes with representative localized outputs: exactly 26 localized XAML entries per target, covering all 13 LCIDs fromBuild/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 installedv180targets tree madePython/Native Debuggingappear; selecting it exposed the expected five properties, persistedPythonDebugLaunchProvider, 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 from18.0to18.0.1makes the corrected package upgrade-eligible, and the final package contains no stalev170payload. - The installed Canary image does not containMicrosoft.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 #8315CI follow-up
Azure run
15781109exposed two PR-only validation issues: Windows PowerShell 5.1 rejected empty-array property access, andloclayout.projwas 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 theBinariesartifact after the validator failed.