# VS17 now requires full include path

**URL:** <https://forums.unrealengine.com/t/vs17-now-requires-full-include-path/465542>\
**Category:** Pipeline & Plugins\
**Tags:** include, build-error, unreal-engine, Visual-Studio, question\
**Created:** [May 20, 2020, 8:54pm UTC](https://forums.unrealengine.com/t/vs17-now-requires-full-include-path/465542 "2020-05-20T20:54:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evigmae](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/evigmae/32/1187349_2.png) [@Evigmae](https://forums.unrealengine.com/u/Evigmae)\
**Post date:** [May 20, 2020, 8:54pm UTC](https://forums.unrealengine.com/t/vs17-now-requires-full-include-path/465542/1 "2020-05-20T20:54:22Z")

</div>

For some reason I can’t compile my game anymore because VS17 says it can’t find the headers. Even on a brand new project.

When I create a new class from the UE4 C++ Wizard, the #include in the class .cpp looks as you would expect:  
`#include "NewActor.h"` Which used to work for me.

But now VS is only accepting the includes with the complete project path:  
`#include "MyProject/Public/Folder/MyActor.h"` otherwise it says it can’t open the source file or that the file or directory doesn’t exist.

I imagine it might have to be with the latest version of VS17 (15.9.23)?  
My Engine version is the latest 4.25 from GitHub. But the same happens on Launcher 4.25

Could it be something I’m missing?

---

<div class="post-metadata">

**Author:** ![Evigmae](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/evigmae/32/1187349_2.png) [@Evigmae](https://forums.unrealengine.com/u/Evigmae)\
**Post date:** [July 7, 2020, 9:32am UTC](https://forums.unrealengine.com/t/vs17-now-requires-full-include-path/465542/2 "2020-07-07T09:32:17Z")

</div>

Ok, so it never went away with further updates.  
It would seem Unreal Build Tool is supposed to automatically include all public paths, but it just isn’t in my case.  
So the solution was to manually add them on my `Project.build.cs` file.

```
PublicIncludePaths.AddRange(
    new string[] {
        "Project/Public",
        "Project/Public/Something",
        "And so on..."
    }
);
```
