UE4.27 fails to compile without Visual Studio 2017

I have visual Studio 2019 and 2022 installed and when I hit build inside on Visual Studio all compiles just fine.
When I hit Compile inside UE4.27 all compiles just fine.
When I open up my Plugins window, go to my plugin and hit Package it builds for a while then it hits UnrealBuildTool and demands I have visual Studio 2017 installed in order to build.

if I take that command as is, paste it on the command line and change the param from -2017 to -2019 or -2011 then the build completes just fine on the command line but that is of no help at all because I don’t know what other steps the Package command was going to run after that step so I can’t manually do what UE4 was going to do.

Do I REALLY need to have 3 versions of VS installed in order for UE4 to compile code that it already verified is correct? Where can I find this command and tell it to use a different param at this point?

How do I get past this issue?

Running: D:\Programs\Unreal\UE_4.27\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win64 Development -Project=D:\Desktop\WPForGaming\HostProject\HostProject.uproject -plugin=D:\Desktop\WPForGaming\HostProject\Plugins\WPForGaming\WPForGaming.uplugin -iwyu -noubtmakefiles -manifest=D:\Desktop\WPForGaming\HostProjec
t\Saved\Manifest-UE4Game-Win64-Development.xml -nohotreload -2017 -log=“C:\Users\Ryu\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Programs+Unreal+UE_4.27\UBT-UE4Game-Win64-Development.txt”
UATHelper: Package Plugin Task (Windows): ERROR: Visual Studio 2017 must be installed in order to build this target.

1 Like