Hello! I just finished building a new computer, and I’ve Installed Unreal Engine 5.2.1 and Visual Studio 2022 Community Edition. I created a new Unreal project and set the IDE for Unreal to Visual Studio 2022. I then tried to right-click it and generate an SLN file for the project, but the option wasn’t there. After some research, I found that I need to run the GenerateProjectFiles.bat file in command line from the folder that Unreal installed to, but it’s giving me the following message when I try to run “GenerateProjectFiles.bat -2022”:
‘GenerateProjectFiles.bat’ is not recognized as an internal or external command,
operable program or batch file.
I then tried searching for GenerateProjectFiles.bat using Ctrl+F (I’m using Windows 11), but it couldn’t find the file. Did it not install with that batch file? Is it possible to set up Visual Studio for Unreal without this batch file, or do I need to get it installed?
On Windows 11, it doesn’t show you all the options at first when you right-click an Unreal project file in the file explorer. You have to click “Show more options” at the bottom of the list of options that pops up, and the Unreal Engine project file options should then appear, including “Generate Visual Studio project files”, which is what I was looking for. If you install Visual Studio with the Desktop development with C++, Universal Windows Platform development, and Game development with C++ workload options checked, it should work just fine. Also, make sure that when you open the Unreal Editor, go to Edit, Editor Preferences, and then Source Code to set your Source Code Editor to Visual Studio.
I don’t know if this is true or not, but I don’t think that Unreal Engine installs GenerateProjectFiles.bat anymore, as I can’t find it. I installed it on a different computer, and it wasn’t there either. So there wasn’t an issue with my installation or anything, it’s just that Windows 11 changed their options pop-up window.