I recently uninstalled my Visual Studio 2017 cause with the release of 2019 and Unreal Engine 4.22 supporting it i wanted to swap to the new version. However it seems like its not possible to create new c++ projects with 4.22 if your only installed Visual Studio is 2019. It fails with:
**An error occurred while trying to generate project files.
Running C:/Program Files/Epic Games/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“C:/Users/Eric/Documents/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
WARNING: Visual Studio C++ 2017 installation not found - ignoring preferred project file format.
ERROR: Visual Studio 2017 must be installed in order to build this target.
**
Is there a way to tell Unreal to use the 2019 Visual Studio for project file generation or is this simply a bug/not supported yet and i actually have to install 2017 again until this is fixed?
Solved after install “Game development using C++” in “Mobile and Game” category from “Visual Studio Installer”.
I’m using Korean version VS, so not sure above is exact English title.
I’m trying to do this, but while it says the default settings are writable, the “Set as Default” button is grayed out. Would you know the problem here? Thanks.
For me, I previously set the editor to Visual Studio 2017. Deleting the corresponding config lines in Config/DefaultEditorSettings.ini and Config/DefaulEngine.ini solved this for me.
For related problems with somewhat-out-of-date engine compilation, I needed to install a previous .NET SDK (4.6.2) and uninstall a more recent Windows 10 SDK (the previous Windows 10 SDK was sufficient).