microsoft / microsoft/react-native-windows
Add warning to run-windows if we can't find VS and have a pending restart
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 17.3k
- Forks
- 1.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Description
If a user updates VS but hasn't restarted yet, we get a cryptic error because VSWhere doesn't return anything. Manually launching VS will show a popup of the real reason we can't find anything.

We can detect pending restart via reg key. We should consider adding a warning/special casing this to give a better message.
vswhere output:
C:\Users\nickg>"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
Visual Studio Locator version 2.7.1+180c706d56 [query version 2.6.2111.5687]
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Users\nickg>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the run-windows entry point and inspect how it handles empty vswhere output. Check the registry key used to detect a pending restart, then define the warning or special-case behavior that should replace the cryptic error when Visual Studio cannot be found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100