Rebuild UnrealBuildTool only without rebuilding whole engine

Hi, Unreal gurus.

I made some changes to UBT and I want to compile it ONLY.
Normal #make just wouldn’t do it for me.

I wrote a simple script after some research like this:

export MONO_PATH=`pwd`/Engine/Binaries/ThirdParty/Mono/Linux
export UE_MONO_DIR=`pwd`/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Linux
source Engine/Build/BatchFiles/Linux/SetupEnvironment.sh
./Engine/Binaries/ThirdParty/Mono/Linux/bin/xbuild Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj

But it didn’t work out and complains like this:

>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

XBuild Engine Version 14.0
Mono, Version 5.16.0.0
Copyright (C) 2005-2013 Various Mono authors

Build started 9/25/2022 6:59:13 PM.
__________________________________________________
Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj: error : /home/sbbg/Shared/UE5/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.  
Build FAILED.
Errors:

Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj: error : /home/sbbg/Shared/UE5/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.  

         0 Warning(s)
         1 Error(s)

Time Elapsed 00:00:00.0122150

So how can I rebuild UBT properly without rebuilding whole engine?
Thank you.

I am answering myself by reading building log of engine:
The proper way to build UBT only is:

dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll UnrealInsights Linux Development
1 Like