Solution: Preserve LightSwitchService unit test project GUID in solution #51402

Open
jiripolasek opened 5:00pm on October 19, 2026 wants to merge 1 commit into microsoft/powertoys main from
dev/jpolasek/b/fix-slnx-guid-mismatch

Pull Request Overview

  • Opened on October 19, 2026
  • Status Open
  • Commit count 1 with first commit October 19, 2026

Total Delta

0 Total Diff Delta

Open Days

Open 17 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Fraction of total time Business days Phase
 
0.0 days Authoring 1 commit before pull request opened for review
 
0.0 days Awaiting first review
 
17.4 days Revising work with 0 commits in response to 0 reviews that left 3 comments

Total time for pull request still awaiting merge (longer than repo's target): 17.4 business days

Author avatar

Solution: Preserve LightSwitchService unit test project GUID in solution

Summary of the Pull Request

This PR updates SLNX to include correct project id used by LightSwitchService.UnitTests.vcxproj.

The project entry in PowerToys.slnx was missing an explicit id, so the solution parser generated a GUID different from the project's existing ProjectGuid. Visual Studio then rewrote the vcxproj file, producing unwanted Git changes whenever the solution was loaded.

https://github.com/microsoft/PowerToys/blob/ef43bf8ff5f3678f860a05227ea668825b967bf6/src/modules/LightSwitch/Tests/LightSwitchService.UnitTests/LightSwitchService.UnitTests.vcxproj#L7


  • Sets the solution entry's Id to the existing ProjectGuid to keep both identities consistent and prevent the automatic rewrite.

PR Checklist


  • [ ] Closes: #xxx
    <!-- - [ ] Closes: #yyy (add separate lines for additional resolved issues) -->

  • [ ] Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected

  • [ ] Tests: Added/updated and all pass

  • [ ] Localization: All end-user-facing strings can be localized

  • [ ] Dev docs: Added/updated

  • [ ] New binaries: Added on the required places



  • [ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Comments Threads Pending Resolution

Resolved Comment Threads

No resolved comments have been left on this PR.