VS2019 support in Unreal 5.3

Hi, I’m trying to understand whether Unreal 5.3 is intended to support Visual Studio 2019.

From the documentation at Setting Up Visual Studio Development Environment for C++ Projects in Unreal Engine | Unreal Engine 5.3 Documentation, it lists VS 2019 16.11.5 or later, however the release notes at Unreal Engine 5.3 Release Notes | Unreal Engine 5.3 Documentation state VS2022 17.4 or newer.

If I only have VC2019 installed (16.11.29), set up as described in the link above, on creating a new empty C++ project, I get the following error.

`Running C:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“C:/Users/—/Documents/Unreal Projects/MyProject2/MyProject2.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“C:/Users/—/Documents/Unreal Projects/MyProject2/MyProject2.uproject” -game -rocket -progress
Log file: C:\Users-–\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio project files:
Discovering modules, targets and source code for project…
Visual Studio 2019 does not support .NET 6.0 C# projects, these projects will not be added to the generated solution.
Please generate the Visual Studio 2022 solution if .NET 6.0 C# project support is required.
Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.29.30151`

I’ve tried this in both the preview and the release versions with the same result. If I install VS2022, the project will be generated and build ok.

Is this likely to be an error with my setup, or with the documentation?

2 Likes

I have installed VS 2022, did the repair, and problem still persists.

I have the same problem, I can’t find a solution, I have updated the version of visual studio but it doesn’t work

1 Like

So if I remove:
14.29.30133 C++ toolchain for VisualStudio2022 x64

I get following message:
Running N:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“N:/UnrealProjects/MyProject333/MyProject333.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“N:/UnrealProjects/MyProject333/MyProject333.uproject” -game -rocket -progress
Log file: C:\Users\Admin\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio project files:
Discovering modules, targets and source code for project…
Available x64 toolchains (1):

  • C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822
    (Family=14.37.32822, FamilyRank=4, Version=14.37.32822, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
    Unable to find valid 14.29.30133 C++ toolchain for VisualStudio2022 x64

If I install 14.29.30133 C++ toolchain for VisualStudio2022 x64
I get following message:
Running N:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“N:/UnrealProjects/MyProject333/MyProject333.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“N:/UnrealProjects/MyProject333/MyProject333.uproject” -game -rocket -progress
Log file: C:\Users\Admin\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio project files:
Discovering modules, targets and source code for project…
Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.29.30151

Ok, so after bit of drilling down, and huge help from ChatGPT, here is the problem and solution (or rather workaround).

In directory:
C:\Users\Admin\AppData\Roaming\Unreal Engine\UnrealBuildTool

There is a file that defines the build toolchain version (14.29.xxx or 14.37.xxx).
Deleting file is not working, it fails again.
However is you put in the file available version of toolchains on your computer, it works.
In directory:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC

You will see the list of available toolchains, in my case it is:
image

Taking the bigger one: 14.37.32822 and putting this number into
BuildConfiguration.xml in C:\Users\Admin\AppData\Roaming\Unreal Engine\UnrealBuildTool

With the change, file looks like:

<?xml version="1.0" encoding="utf-8" ?> 
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<WindowsPlatform>
    <CompilerVersion>14.37.32822</CompilerVersion>
</WindowsPlatform> </Configuration>

Everything started working as it should.
That said, I am still not sure why UBT do not use latest MSVC toolchain from the start.

8 Likes

Hi, thanks, I’ve just tried that again. I had tried setting the explicit version of VC (2019) installed in the BuildConfiguration.xml file previously, however the problem still persists for me.

The issue I have is that I currently can’t build against VS2022 on my build farm, as it currently only supports VS2019. I can build against 2022 locally, but am trying to determine if it’s possible to use VS2019 at all with this UE5.3 release as (some of) the documentation suggests it should be.

This issue was present in the previous 5.2 preview, but was resolved in the final release, but that does not seem to be the case this time.

1 Like
14.16.27023
14.29.30133
14.37.32822

Fixed here!! Thanks @SNINKOV !
I used the 14.37.32822

I was getting the the same errors as you described above.
I have Visual Studio 2019 installed, as well as Visual Studio 2022.
Using UE 5.2, I have rebuilt the makefiles and recompiled my project using the newly installed Visual Studio 2022.
I have also made the above changers in BuildCOnfiguration.xml, which also matches the version I have installed - but when I go to convert the project to 5.3, it seems to keep trying to use Visual Studio 2019.

I have already regenerated the UE5.2 version of the project using VS 2022.
What causes UE 5.3 to keep trying to use use Visual Studio 2019 to build / convert the
project?

I get the following errors:

Project files could not be generated. Log output:

Running D:/Program Files/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/projects/UnrealProjects/MyMechGame5.2 5.3/MyMechGame.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/projects/UnrealProjects/MyMechGame5.2 5.3/MyMechGame.uproject” -game -rocket -progress
Log file: C:\Users\cromp\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Generating VisualStudio2019 project files:
Discovering modules, targets and source code for project…
Visual Studio 2019 does not support .NET 6.0 C# projects, these projects will not be added to the generated solution.
Please generate the Visual Studio 2022 solution if .NET 6.0 C# project support is required.
Available x64 toolchains (2):

  • C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133
    (Family=14.29.30133, FamilyRank=3, Version=14.29.30151, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
  • C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133
    (Family=14.29.30133, FamilyRank=3, Version=14.29.30147, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
    Unable to find valid 14.37.32822 C++ toolchain for VisualStudio2019 x64

Obviously i don’t have the same problem, but here are few ideas where I would investigate next (advice is from ChatGPT):

  1. Problem with Project Path: The project path you have seems to contain spaces: D:/projects/UnrealProjects/MyMechGame5.2 5.3/MyMechGame.uproject. Spaces in file and directory names can sometimes cause issues.Solution: Rename your project folder to something without spaces. For example: D:/projects/UnrealProjects/MyMechGame5_2_5_3/MyMechGame.uproject.
  2. .NET 6.0 Support in Visual Studio 2019: The log clearly states that Visual Studio 2019 does not support .NET 6.0 C# projects.Solution: Upgrade to Visual Studio 2022, which supports .NET 6.0. This seems to be recommended by the log message as well.
  3. Unable to Find Valid 14.37.32822 C++ toolchain for VisualStudio2019 x64: The toolchain version you have installed seems to be 14.29.30133 (both for BuildTools and Community edition), but UE5 seems to be looking for 14.37.32822.Solution:
  • Ensure that you have all the necessary C++ development workloads installed through the Visual Studio installer.
  • Update your Visual Studio 2019 installation to ensure you have the latest toolchains. This can be done via the Visual Studio Installer.
  • As an alternative (and as a good future-proofing move), consider upgrading to Visual Studio 2022.
  1. Check the Log: Log file: C:\Users\cromp\AppData\Local\UnrealBuildTool\Log_GPF.txt. The specific details about the failure will be inside this log file.Solution: Open the specified log file to get more detailed information about the errors.

The path name is how UE 5.3 copies and renames the project when I open the 5.2 version of it. - it just tacks a space and 5.3 onto the end of it, so I don’t think that’s the problem or UE wouldn’t rename converted projects that way.

I have already upgraded to VS 2022, and have the 14.37.3282 build chain installed.
I also had recompiled the project under UE5.2 using VS2022, and can open the project into visual studio from the unreal editor.

I now also have 14.29.30133 installed too, but it seems to persist in using VS2019.
I have now also uninstalled VS2019, (which will be a headache for my other projects) so the only version of Visual Stuido I have installed is VS2022, yet it is still looking for VS2019 when doing the conversion for some reason:

Project files could not be generated. Log output:

Running D:/Program Files/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/projects/UnrealProjects/MyMechGame5.2 5.3/MyMechGame.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/projects/UnrealProjects/MyMechGame5.2 5.3/MyMechGame.uproject” -game -rocket -progress
Log file: C:\Users\cromp\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Generating VisualStudio2019 project files:
Discovering modules, targets and source code for project…
Visual Studio C++ 2019 installation not found - ignoring preferred project file format.
No available x64 toolchains found
Unable to find valid 14.37.32822 C++ toolchain for VisualStudio2019 x64

with the full log file containing the following:

Log started at 09/26/2023 13:38:45 (2023-09-26T09:38:45Z)
No config file at C:\Users\cromp\Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Configuration will be read from:
C:\Users\cromp\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Setting temp directory to ‘C:\Users\cromp\AppData\Local\Temp\UnrealBuildTool\556086c9’
Registering build platform: UnrealBuildTool.AndroidPlatformFactory
Registering build platform: Android - buildable: False
Registering build platform: UnrealBuildTool.IOSPlatformFactory
Registering build platform: IOS - buildable: False
Registering build platform: UnrealBuildTool.LinuxPlatformFactory
Registering build platform: Linux - buildable: False
Registering build platform: LinuxArm64 - buildable: False
Registering build platform: UnrealBuildTool.MacPlatformFactory
Registering build platform: UnrealBuildTool.TVOSPlatformFactory
Registering build platform: UnrealBuildTool.WindowsPlatformFactory
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (1)
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (2)
Found Windows 10 SDK version 10.0.17763.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.17763.0 at C:\Program Files (x86)\Windows Kits\10
Found Windows 10 SDK version 10.0.20348.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.20348.0 at C:\Program Files (x86)\Windows Kits\10
Found Windows 10 SDK version 10.0.22000.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.22000.0 at C:\Program Files (x86)\Windows Kits\10
Win64 Installed SDK(s): MinVersion_Sdk=10.0.00000.0, MaxVersion_Sdk=10.9.99999.0, CurrentVersion_Sdk=10.0.22000.0, Version_AutoSdk=10.0.18362.0, CurrentVersion_AutoSdk=
Registering build platform: Win64 - buildable: True
Log file: C:\Users\cromp\AppData\Local\UnrealBuildTool\Log_GPF.txt
Deleting old log file: C:\Users\cromp\AppData\Local\UnrealBuildTool\Log_GPF-backup-2022.04.01-15.15.26.txt

Resolved project argument D:/projects/UnrealProjects/MyMechGame5.2 5.3/MyMechGame.uproject to D:\projects\UnrealProjects\MyMechGame5.2 5.3\MyMechGame.uproject
Registering project generator UnrealBuildTool.AndroidProjectGenerator for Android
Registering project generator UnrealBuildTool.IOSProjectGenerator for IOS
Registering project generator UnrealBuildTool.LinuxProjectGenerator for Linux
Registering project generator UnrealBuildTool.LinuxProjectGenerator for LinuxArm64
Registering project generator UnrealBuildTool.MacProjectGenerator for Mac
Skipping project file generator registration for Mac due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.TVOSProjectGenerator for TVOS
Skipping project file generator registration for TVOS due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.WindowsProjectGenerator for Win64

— SDK INFO START —

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

— SDK INFO END —

Generating VisualStudio2019 project files:
Discovering modules, targets and source code for project…
Found Visual Studio installation: C:\Program Files\Microsoft Visual Studio\2022\Community (Product=Microsoft.VisualStudio.Product.Community, Version=17.7.34031.279)
Visual Studio C++ 2019 installation not found - ignoring preferred project file format.
Found Visual Studio toolchain: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822 (Family=14.37.32822, FamilyRank=4, Version=14.37.32824, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64, Error=False, Redist=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.36.32532)
Detected supported platforms: Win64, IOS, Android, Linux, LinuxArm64
Ignoring unknown platform ‘HoloLens’ (referenced via a project’s plugin descriptor for ‘OpenXR’)
Skipping D:\Program Files\UE_5.3\Engine\Intermediate\Build\BuildRules\UE5Rules.dll: File is installed
Skipping D:\Program Files\UE_5.3\Engine\Intermediate\Build\BuildRules\UE5ProgramRules.dll: File is installed
No available x64 toolchains found
Unable to find valid 14.37.32822 C++ toolchain for VisualStudio2019 x64
BuildException: Unable to find valid 14.37.32822 C++ toolchain for VisualStudio2019 x64
at UnrealBuildTool.MicrosoftPlatformSDK.TryGetToolChainDir(WindowsCompiler Compiler, String CompilerVersion, UnrealArch Architecture, ILogger Logger, VersionNumber& OutToolChainVersion, DirectoryReference& OutToolChainDir, DirectoryReference& OutRedistDir) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\MicrosoftPlatformSDK.cs:line 554
at UnrealBuildTool.WindowsPlatform.TryGetToolChainDir(WindowsCompiler Compiler, String CompilerVersion, UnrealArch Architecture, ILogger Logger, VersionNumber& OutToolChainVersion, DirectoryReference& OutToolChainDir, DirectoryReference& OutRedistDir) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 1204
at UnrealBuildTool.VCEnvironmentParameters…ctor(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, UnrealArch Architecture, String CompilerVersion, String ToolchainVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, Boolean bAllowClangLinker, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 457
at UnrealBuildTool.VCEnvironment.Create(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, UnrealArch Architecture, String CompilerVersion, String ToolchainVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, Boolean bAllowClangLinker, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 378
at UnrealBuildTool.WindowsPlatform.CreateVCEnvironment(TargetRules Target) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 895
at UnrealBuildTool.WindowsPlatform.ValidateTarget(TargetRules Target) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 1006
at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance(String TypeName, TargetInfo TargetInfo, ILogger Logger, Boolean IsTestTarget, Boolean bSkipValidation) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 698
at UnrealBuildTool.RulesAssembly.CreateTargetRules(String TargetName, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, UnrealArchitectures Architectures, FileReference ProjectFile, CommandLineArguments Arguments, ILogger Logger, Boolean IsTestTarget, Boolean bSkipValidation, UnrealIntermediateEnvironment IntermediateEnvironment) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 776
at UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets(PlatformProjectGeneratorCollection PlatformProjectGenerators, List1 AllGames, List1 AllTargetFiles, String Arguments, List1 EngineProjects, List1 GameProjects, Dictionary2 ProjectFileToUProjectFile, Dictionary2 ProgramProjects, Dictionary`2 RulesAssemblies, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2719
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String Arguments, Boolean bCacheDataForEditor, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 1023
at UnrealBuildTool.GenerateProjectFilesMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 65
at UnrealBuildTool.UnrealBuildTool.Main(String ArgumentsArray) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 659
WriteFileIfChanged() wrote 0 changed files of 2 requested writes.
Timeline:

[ 0.000]
0.000
[ 2.170]

Note that C:\Users\cromp\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml contains the following:

<?xml version="1.0" encoding="utf-8" ?> 14.37.32822

Any other suggestions?

Replying to my own question with the solution that finally worked for me:
I was still having problems with UE5.3 defaulting to VS 2019, which I think was causing the project conversions to fail.
To fix this I did the following:

  1. Created a new project using UE5.3.
  2. go to editor preferences->Source Code and set Source Code Editor to VS2022. I noted that it was previously set to VS2019, even though I don’t even have that installed any more.
  3. saved config to be the default config.
  4. Installed the VS extension again, using the steps here:
    Using the UnrealVS Extension for Unreal Engine C++ Projects | Unreal Engine 5.0 Documentation
  5. Exited and relaunched the new test project - now the Open Visual Studio Code menu option was available.
  6. opened the project in visual studio and tried to compile it. Visual Studio suggested adding additional build components for the project, which I did.
  7. Recompiled everything again in Visual Studio
  8. Exited the test project, closed UE5.3 and reopened it again, then selected my UE 5.2 project again, for copy and conversion. (it gave it a name with a space and 5.3 tacked on the end)
  9. After quite a while (several minutes) with the editor seemingly frozen, eventually the newly converted project opened and everything seems to work.
  10. posted the results here.

Thanks for suggestions and help. I was really struggling with this for 2 days.

2 Likes

Just chipping in.

I ran into the same issue.

Note the log file: C:\Users-–\AppData\Local\UnrealBuildTool\Log_GPF.txt

It lists the compiled versions it checks, which for me were:

Found Visual Studio toolchain: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.29.30133 (Family=14.29.30133, FamilyRank=3, Version=14.29.30151, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64, Error=False, Redist=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.29.30133)

Found Visual Studio toolchain: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822 (Family=14.37.32822, FamilyRank=4, Version=14.37.32822, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64, Error=False, Redist=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.36.32532)

In MicrosoftPlatformSDK.cs, where the logs are called, you’ll see that the toolchains are given a FamilyRank based on a PreferredVisualCppVersions list. This rank in my log is lower for the older versions, but the SelectToolChain() function sorts as such:

ToolChainInstallation? ToolChain = Preference(ToolChains.Where(x => x.Architecture == Architecture)
	.OrderByDescending(x => x.Error == null))
	.ThenByDescending(x => x.Is64Bit)
	.ThenBy(x => x.ReleaseChannel)
	.ThenBy(x => x.FamilyRank)
	.ThenByDescending(x => x.IsAutoSdk)
	.ThenByDescending(x => x.Version)
	.FirstOrDefault();

As FamilyRank is sorted ascending, it will prefer older versions instead of newer ones.

So my solution was to remove the older version of the toolchain from C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC

Hope this helps!

1 Like

I had similar problems here. From my two versions of Visual Studio Unreal was always trying to take the older one. The solution was to explicitly set the compiler parameter (not only the compiler version parameter as it was suggested by SNINKOV):

  <WindowsPlatform>
      <Compiler>VisualStudio2022</Compiler>
      <CompilerVersion>14.37.32822</CompilerVersion>
  </WindowsPlatform>
2 Likes

There is no need to use VS2022 for UE 5.3 it will just slow your Machine as it is much heavier than vs2019, u can use just download MSVC 14.34 or 14.37 and .NET use simple lightweight IDE like Sublime Text

You have to, at least starting from 5.3.1.

Based on the following link it looks like the below should resolve that bit

<CompilerVersion>Latest</CompilerVersion>

Build Configuration for Unreal Engine | Unreal Engine 5.3 Documentation

2 Likes

Thank you very much for that, I really didn’t want to add the bloat of 2019 to my system and specifying the tag appears to have fixed it for me.

Thank you @SNINKOV and @oemintadiryi your solution saved me a lot of struggles.

these are the locations we need to check as per docs

  • Engine/Saved/UnrealBuildTool/BuildConfiguration.xml
  • <USER>/AppData/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
  • My Documents/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
  • <PROJECT_DIRECTORY>/Saved/UnrealBuildTool/BuildConfiguration.xml

And also check

  • <PROJECT_DIRECTORY>/Config/DefaultEditor.ini
  • <PROJECT_DIRECTORY>/Config/DefaultEditorSettings.ini
    • [/Script/SourceCodeAccess.SourceCodeAccessSettings] PreferredAccessor=VisualStudio2022
  • <PROJECT_DIRECTORY>/Config/DefaultEngine.ini
    • [/Script/WindowsTargetPlatform.WindowsTargetSettings] Compiler=VisualStudio2022

HI SNINKOV. Thanks for digging into this. Looking at appdata\roaming\Unrel Engine] UnrealBuildTool, I see the xml file.

However, the only version folder in my MSVC folder it 14.29.30133. I updated my VS 2019 tonight to the latest version, but it just has this older version in there.

I looked at the modify option in VS installer and saw an ocean of options under compilers, but nothing with the version you show here.

How did you get that newer version?