When UE5.7 meets Visual Studio 2026, a "RulesError" issue has occured.

I am a complete novice, so please forgive my questions if they seem rather basic.

My computer only has Visual Studio 2026 installed as the IDE, and the workload was set up according to the official instructions.

Upon creating a new UE5.7 C++ project, the Tools menu within the editor displays the options shown in the figure:

When I create a new C++ within the editor, it displays a compilation failure with the following log content:

Expecting to find a type to be declared in a module rules named ‘VisualStudioTools’ in ‘UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’. This type must derive from the ‘ModuleRules’ type defined by UnrealBuildTool.

Result: Failed (RulesError)

The C++ class I created is not displayed in the Content Browser, yet the .h and .cpp files are visible within Visual Studio 2026.

However, when I perform the build operation in VS2026, it also fails for the same reason.

I really don’t know how to resolve this issue. Please help me! Thanks!

Hello there @UndeadZombie!

Welcome to UE! And no worries, all questions are valid. For engine work, you should stick to Visual Studio 2022 (version 17.14), and make sure that all the required components are properly installed in your system, as seen here:

Full instructions for the setup can be found in the UE doc below: