Quick answer: On Windows 11 the entry is under Show more options. Otherwise the .uproject file association is not registered: run UnrealVersionSelector.exe to re-register it, use Tools > Refresh Visual Studio Project in the editor, or run UBT with -projectfiles from a terminal. Blueprint-only projects need a C++ class first.
You need a solution file to open the project in Visual Studio, and the usual way to get one has vanished from the context menu. Nothing is wrong with the project. The shell integration that adds the menu entry is missing, hidden or pointed at the wrong engine, and there are three other ways to generate the files.
Check 1: Windows 11 hides it
Windows 11's compact context menu does not show entries from older shell extensions. Right-click the .uproject and choose Show more options (or hold Shift while right-clicking). If Generate Visual Studio project files, Launch game and Switch Unreal Engine version are there, you are done.
Fix 1: re-register the file association
Those menu entries come from UnrealVersionSelector. When they are missing even in the full menu, the .uproject extension is not associated with it, often because the Epic launcher was never run on this machine, a source build never ran its setup, or another program claimed .uproject files.
- Launcher installs: run
C:\Program Files (x86)\Epic Games\Launcher\Engine\Binaries\Win64\UnrealVersionSelector.exe. Running it with no arguments registers the file association. - Source builds: run
Setup.batin the engine root, thenEngine\Binaries\Win64\UnrealVersionSelector.exefrom that engine.
If the .uproject opens in Notepad or another app when double-clicked, fix the association first: right-click, Open with > Choose another app, browse to UnrealVersionSelector.exe and tick “Always use this app”.
Fix 2: generate from inside the editor
If the project opens in the editor, use Tools > Refresh Visual Studio 2022 Project (the menu wording follows your selected IDE). Set which IDE that uses under Editor Preferences > General > Source Code > Source Code Editor.
Fix 3: generate from the command line
This always works, does not depend on the shell extension, and is the right thing to put in scripts and CI:
:: launcher-installed engine
"C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat" ^
-projectfiles -project="D:\Projects\MyGame\MyGame.uproject" -game -rocket -progress
:: source-built engine
D:\UnrealEngine\GenerateProjectFiles.bat -project="D:\Projects\MyGame\MyGame.uproject" -game -engine
The solution appears next to the .uproject.
If it runs but nothing is generated
A Blueprint-only project has no Source folder, so there is nothing to generate a solution for. In the editor, use Tools > New C++ Class, add any class (an empty Actor is fine), and the editor creates Source/, generates the solution and compiles. After that, the context menu and command line both work.
You might not need a .sln at all
JetBrains Rider opens .uproject files directly and generates what it needs itself, and recent Visual Studio 2022 versions can open .uproject files too. If you only lost the menu entry and use one of those workflows, open the .uproject from the IDE and skip the solution step entirely.
Before you ship that C++ project
Converting a Blueprint project to C++ is often the moment a team starts writing systems that can crash in ways Blueprints could not. Bugnet's Unreal SDK captures fatal errors and ensures from packaged builds with the log, GPU, OS and build attached, so the first native crash a player hits reaches you as a report rather than a review.
Related problems
- How to Fix “Visual Studio 2022 must be installed in order to build this target” in Unreal
- How to Fix “The game module could not be loaded” in Unreal Engine
- How to Fix “error MSB3073: The command … exited with code -1” Building Unreal C++ Projects
Frequently asked questions
Why is “Generate Visual Studio project files” missing on Windows 11?
Windows 11 hides older shell extension entries. Right-click the .uproject and choose Show more options to see it.
How do I restore the .uproject right-click menu?
Run UnrealVersionSelector.exe from the Epic Games Launcher folder or your engine’s Binaries\Win64 folder to re-register the .uproject file association.
How do I generate Unreal project files from the command line?
Run the engine’s Build.bat with -projectfiles -project="path\to\MyGame.uproject" -game -rocket -progress for launcher builds, or GenerateProjectFiles.bat for source builds.
The command line version never disappears. Keep it in a .bat file next to your .uproject.