microsoft / microsoft/react-native-windows

Add warning to run-windows if we can't find VS and have a pending restart

Open
#5,476 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: CLI Area: Developer Experience Developer First Experience enhancement Quick Task Workstream: Developer Experience
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.

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.