Support VisualStudio2022 as a source code accessor and compilier

Note: _MSC_VER is still 1929 with the VS2022 preview, I expect it to be 1930 eventually when the compiler version is bumped which should match the versioning scheme for every other VS release

#rb none
#preflight 60d0c0d878c3b00001e335d9

#ROBOMERGE-SOURCE: CL 16730633 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16730641 by joe kirchoff in ue5-release-engine-test branch]
This commit is contained in:
joe kirchoff
2021-06-21 14:05:15 -04:00
parent fc102475a0
commit d030dcdf10
5 changed files with 10 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ bool FSourceCodeAccessModule::CanCompileSourceCode() const
{
#if PLATFORM_WINDOWS
// Need to have Visual Studio installed to compile on Windows, regardless of chosen IDE
return IsSourceCodeAccessorAvailable("VisualStudio2017") || IsSourceCodeAccessorAvailable("VisualStudio2019");
return IsSourceCodeAccessorAvailable("VisualStudio2017") || IsSourceCodeAccessorAvailable("VisualStudio2019") || IsSourceCodeAccessorAvailable("VisualStudio2022");
#else
// Default behavior
return CanAccessSourceCode();