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

**URL:** <https://forums.unrealengine.com/t/when-ue5-7-meets-visual-studio-2026-a-ruleserror-issue-has-occured/2679186>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [November 27, 2025, 8:19am UTC](https://forums.unrealengine.com/t/when-ue5-7-meets-visual-studio-2026-a-ruleserror-issue-has-occured/2679186 "2025-11-27T08:19:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UndeadZombie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UndeadZombie](https://forums.unrealengine.com/u/UndeadZombie)\
**Post date:** [November 27, 2025, 8:19am UTC](https://forums.unrealengine.com/t/when-ue5-7-meets-visual-studio-2026-a-ruleserror-issue-has-occured/2679186/1 "2025-11-27T08:19:01Z")

</div>

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:

 ![无标题](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/0/0f0de3550b4b4c808d5de2a72a8a3fe63b26079d.png)

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!

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [November 27, 2025, 12:59pm UTC](https://forums.unrealengine.com/t/when-ue5-7-meets-visual-studio-2026-a-ruleserror-issue-has-occured/2679186/2 "2025-11-27T12:59:33Z")

</div>

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:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/f/c2fb93cb0874fc77206d890703be18d7e874a638.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/b/d9b33db75fee08a6a727189785023d01e2d1402d.png)

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

> **[Setting Up Visual Studio Development Environment for C++ Projects in Unreal...](https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine)**
>
> Tips, tricks, and techniques for setting up Visual Studio to work with Unreal Engine.

---

<div class="post-metadata">

**Author:** ![UndeadZombie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UndeadZombie](https://forums.unrealengine.com/u/UndeadZombie)\
**Post date:** [November 28, 2025, 2:27am UTC](https://forums.unrealengine.com/t/when-ue5-7-meets-visual-studio-2026-a-ruleserror-issue-has-occured/2679186/3 "2025-11-28T02:27:18Z")

</div>

I’ve found a solution.  
It appears Visual Studio 2026 installed a VisualStudioTools plugin version 2.7 to the engine.  
Locate the Plugins folder within the engine’s installation directory. Within it, find the VisualStudioTools folder. Move this folder into the Marketplace folder beneath the Plugins folder. If the Marketplace folder not exist, create one.
