Unreal 升級錯誤 The type or namespace name 'Tools' could not be found

Unreal 專案從 4.27 升級到 UE 5.0 以上,若出現以下錯誤

The type or namespace name 'Tools' could not be found (are you missing a using directive or an assembly reference?)

找到以下程式碼

using Tools.DotNETCommon;

改為

#if UE_5_0_OR_LATER
using EpicGames.Core;
#else
using Tools.DotNETCommon;
#endif