Need help with visual studio for Unreal Enginer 5.3

I’m trying to code with C++Using Unreal Engine 5.3 , but Visual Studio 2022 won’t build/ compile my codes, but Live code will compile my codes.
If I create a new c++ project, and try to build (no edit or add any code) Visual studio try to compile, then it fail, but Live code never fail.

But Visual Studio will compile Unreal Engine 5.5 codes,

so, is it a module or something I need to make it work in Unreal Engine 5.3 and compile the code?

Link to project:
Dropbox link

Visual Studio 2022, 17.13.6

error before trying to compile:

Severity Code Description Project File Line Suppression State Details
Error (active) E1455 member function declared with ‘override’ does not override a base class member ATest D:\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 167
Error (active) E1455 member function declared with ‘override’ does not override a base class member ATest D:\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 157

Error after tryng to compile:

Severity Code Description Project File Line Suppression State Details
Error (active) CS0246 The type or namespace name ‘MemoryCacheOptions’ could not be found (are you missing a using directive or an assembly reference?) EpicGames.Horde D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Horde\Compute\Clients\LocalComputeClient.cs 78
Error (active) CS0246 The type or namespace name ‘MemoryCache’ could not be found (are you missing a using directive or an assembly reference?) EpicGames.Horde D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Horde\Compute\Clients\LocalComputeClient.cs 78
Error (active) CS0246 The type or namespace name ‘MemoryCache’ could not be found (are you missing a using directive or an assembly reference?) EpicGames.Horde D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Horde\Compute\Clients\LocalComputeClient.cs 78
Error (active) CS0246 The type or namespace name ‘MemoryCache’ could not be found (are you missing a using directive or an assembly reference?) EpicGames.Horde D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Horde\Storage\Backends\MemoryStorageClient.cs 50
Error (active) CS0246 The type or namespace name ‘MemoryCacheOptions’ could not be found (are you missing a using directive or an assembly reference?) EpicGames.Horde D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Horde\Storage\Backends\MemoryStorageClient.cs 50
Error (active) E1455 member function declared with ‘override’ does not override a base class member ATest D:\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 157
Error (active) E1455 member function declared with ‘override’ does not override a base class member ATest D:\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 167
Error (active) CS8604 Possible null reference argument for parameter ‘other’ in ‘void HashSet.UnionWith(IEnumerable other)’. BuildGraph.Automation D:\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs 1640
Error (active) CA2017 Number of parameters supplied in the logging message template do not match the number of named placeholders (CA2017: Parameter count mismatch (code analysis) - .NET | Microsoft Learn) AutomationScripts.Automation D:\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs 87

Live code is a “different beast”. Try to first compile the engine at least once before going in with Live code.

You should be able to create an empty project and compile that.

Try going through these steps and say if you manage to build: Setting Up Visual Studio Development Environment for C++ Projects in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community

I did follow the documentation you linked first.

the thing is, 5.3 don’t work,l but 5.5 does work.

I did make an empty c++ project in unreal engine 5.3, visual studio open, i did click build, and I get warnings an errors

Severity Code Description Project File Line Suppression State Details
Warning (active) NU1903 Package ‘Microsoft.Extensions.Caching.Memory’ 6.0.1 has a known high severity vulnerability, Microsoft Security Advisory CVE-2024-43483 | .NET Denial of Service Vulnerability · CVE-2024-43483 · GitHub Advisory Database · GitHub EpicGames.Oodle D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Oodle\EpicGames.Oodle.csproj 1
Error (active) CS8604 Possible null reference argument for parameter ‘other’ in ‘void HashSet.UnionWith(IEnumerable other)’. BuildGraph.Automation D:\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs 1640
Error (active) CA2017 Number of parameters supplied in the logging message template do not match the number of named placeholders (CA2017: Parameter count mismatch (code analysis) - .NET | Microsoft Learn) AutomationScripts.Automation D:\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs 87
Warning (active) CA2200 Re-throwing caught exception changes stack information (CA2200: Rethrow to preserve stack details (code analysis) - .NET | Microsoft Learn) EpicGames.MsBuild D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.MsBuild\CsProjBuilder.cs 249
Warning (active) CA2249 Use ‘string.Contains’ instead of ‘string.IndexOf’ to improve readability (CA2249: Consider using 'String.Contains' instead of 'String.IndexOf' (code analysis) - .NET | Microsoft Learn) EpicGames.MsBuild D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.MsBuild\CsProjBuilder.cs 305
Warning (active) NU1903 Package ‘Microsoft.Extensions.Caching.Memory’ 6.0.1 has a known high severity vulnerability, Microsoft Security Advisory CVE-2024-43483 | .NET Denial of Service Vulnerability · CVE-2024-43483 · GitHub Advisory Database · GitHub EpicGames.Horde D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj 1
Warning (active) CA1416 This call site is reachable on all platforms. ‘RegistryKey.OpenBaseKey(RegistryHive, RegistryView)’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs 42
Warning (active) CA1416 This call site is reachable on all platforms. ‘RegistryKey.OpenSubKey(string)’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs 42
Warning (active) CA1416 This call site is reachable on all platforms. ‘RegistryHive.ClassesRoot’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs 42
Warning (active) CA1416 This call site is reachable on all platforms. ‘RegistryView.Registry32’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs 42
Warning (active) CA1416 This call site is reachable on all platforms. ‘Registry.GetValue(string, string?, object?)’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Core.Build.cs 211
Warning (active) CA1416 This call site is reachable on all platforms. ‘Registry.GetValue(string, string?, object?)’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Source\ThirdParty\NVIDIA\Rivermax\RivermaxLib.build.cs 17
Warning (active) CA1416 This call site is reachable on all platforms. ‘Registry.GetValue(string, string?, object?)’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Source\ThirdParty\Windows\VisualStudioDTE\VisualStudioDTE.Build.cs 55
Warning (active) CA1416 This call site is reachable on all platforms. ‘WindowsExports.TryGetWindowsSdkDir(string, out Version?, out DirectoryReference?)’ is only supported on: ‘windows’. (CA1416: Validate platform compatibility (code analysis) - .NET | Microsoft Learn) UE5Rules D:\Epic Games\UE_5.3\Engine\Source\ThirdParty\Windows\XInput\XInput.Build.cs 27
Warning (active) CA1050 Declare types in namespaces (CA1050: Declare types in namespaces (code analysis) - .NET | Microsoft Learn) UE5ProgramRules D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Perforce.Native\DotNetPerforceLib.Build.cs 5
Warning (active) CA1050 Declare types in namespaces (CA1050: Declare types in namespaces (code analysis) - .NET | Microsoft Learn) UE5ProgramRules D:\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Perforce.Native\DotNetPerforceLib.Target.cs 5

UE5.3 requires a specific MSVC version, if you have a recent one, it might fail like the errors you are receiving.

For only 5.3 to work, you need MSVC 17.6 from Visual Studio Installer:
image

If that still doesnt work (double check in the output log which msvc version it using)
Do this manual workaround (set the proper msvc ver for 5.3)