Two problems that should be simple regarding my Visual Studio 2022 Install with Unreal 5.1

I have two issues. The first issue is it can’t seem to find certain configuration files. Spesifically the Name Convention Checker and the HLSL Support file. My project isn’t in a My Documents folder and I’m using 5.1 not 5.3.

The second is whenever I compile code I get all these errors. None of which make any sense. Is this an issue related to using 5.1 and not 5.3?

I’ve posted two images that should help illustrate my problems.


Have you solved the issue?
I am not sure what is causing that, you can try to refresh the Visual Studio Code (on the Unreal Engine interface tool→refresh Visual Studio 2022…).
Otherwise, try to check the steps in this tutorial:

I hope this helps, good luck

This post and the third comment on this page seem to solve the naming convention checker and hlsl config issues, respectively.

Additionally, it seems that building from visual studio doesn’t work while the unreal editor is open. You need to go into the editor and use the hot reload/live coding button in the bottom right (icon pictured below)
image
I’m kind of new to the engine so the solutions I posted may be workarounds more than actual fixes, but hopefully this helps.

1 Like

I had errors like that too when I installed UE5 on a fresh Windows 10.
I had used it without compile/link errors when I had installed it on top of a UE4 installation.

If you really need to use an older UE version, then you will probably have to change the source in the engine which means you will have to get the version of the engine where you are allowed to do this.

I’d suggest to switch to a newer version.
Since 5.4 I don’t have to change the engine code any longer for a clean UE5 installation.

About these two files:

  1. HLS configuration file: “shadertoolsconfig.json” parallel to your .uproject file:
{
  "hlsl.preprocessorDefinitions": {
  },
  " hlsl.additionalIncludeDirectories": [
  ],
  "hlsl.virtualDirectoryMappings": {
  }
}
  1. naming convention checker: “.editorconfig” parallel to your .uproject file.
    Content: https://raw.githubusercontent.com/microsoft/vc-ue-extensions/main/Source/.editorconfig