Hi @Salwa_Razak,
I have previously built 4.27 on VS2019 and VS2022.
The error
“Lighting build failed. Swarm failed to kick off. Compile Unreal Lightmass”.
Can be fixed by the following procedure. Your project can be on any drive, but the full path must be less than 25 characters. Your project file name must be less than 20 characters.
You will need to build a 4.27 source UnrealLightMass project in VS as in the picture below
using the 4.27 unreal Source
Next you need to open a new project like the Third Person Shooter.
in Top bar menu “Build Lighting Only” the Swarm Manager starts up
This will start the Swarm Control. Select Settings
Next you need to open a new project the Third Person Shooter again
in Top bar menu “Build Lighting Only” the Swarm Manager starts up.
This time the screen will display “Building Lighting…”
Finally a box will say “Lighting build completed”