Unable to mitigate AR project UE4.27 to UE5.0

Dear,

I have a HoloLens project in UE4.27, but I want to upgrade to UE5.0 because of the compatibility of DataSmith with the newer 3DSMax versions. However, when I try to mitigate to UE5 I get the error message below.

That the plugins are from the older version is understandable, but these can just be updated once the project has opened in UE5, right? The plugins all have a version compatible with UE5.0.

But the ERROR message (last line) is crucial I think. However, the Source folder of the project does include the .Target.cs files and do create a Demo_SBKlemmenTarget class from the TargetRules class. Does someone else has solved a similar issue?

I really need some help. Thank you in advance.

Error message:

Project files could not be generated. Log output:

Running C:/Program Files/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/name.surname/OneDrive - User/Documents/New_MR_Folder/SPIE_MR_APP_Upgrade 5.0/DSMaxImport.uproject” -game -rocket -progress

Log file: C:\Users\name.surname\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.

See the log file for detailed information

Discovering modules, targets and source code for project…

C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\AzureSpatialAnchorsForOpenXR\AzureSpatialAnchorsForOpenXR.Build.cs(8,7): error CS0246: The type or namespace name ‘Tools’ could not be found (are you missing a using directive or an assembly reference?)
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\MicrosoftOpenXR\MicrosoftOpenXR.Build.cs(6,31): error CS0234: The type or namespace name ‘Messaging’ does not exist in the namespace ‘System.Runtime.Remoting’ (are you missing an assembly reference?)
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\MicrosoftOpenXR\MicrosoftOpenXR.Build.cs(8,7): error CS0246: The type or namespace name ‘Tools’ could not be found (are you missing a using directive or an assembly reference?)
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(6,31): error CS0234: The type or namespace name ‘Messaging’ does not exist in the namespace ‘System.Runtime.Remoting’ (are you missing an assembly reference?)
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(8,7): error CS0246: The type or namespace name ‘Tools’ could not be found (are you missing a using directive or an assembly reference?)
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(51,23): error CS1069: The type name ‘WebClient’ could not be found in the namespace ‘System.Net’. This type has been forwarded to assembly ‘System.Net.WebClient, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ Consider adding a reference to that assembly.
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(51,62): error CS1069: The type name ‘WebClient’ could not be found in the namespace ‘System.Net’. This type has been forwarded to assembly ‘System.Net.WebClient, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ Consider adding a reference to that assembly.
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(234,4): error CS0103: The name ‘Log’ does not exist in the current context
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(244,4): error CS0103: The name ‘Log’ does not exist in the current context
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(247,5): error CS0103: The name ‘Log’ does not exist in the current context
C:\Users\name.surname\OneDrive - User\Documents\New_MR_Folder\SPIE_MR_APP_Upgrade 5.0\Plugins\MicrosoftOpenXR\Source\NuGetModule\NuGetModule.Build.cs(251,4): error CS0103: The name ‘Log’ does not exist in the current context
ERROR: Expecting to find a type to be declared in a target rules named ‘Demo_SBKlemmenTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.

For anyone who has problems with mitigating a whole project to UE5 themselves,

I have created a new UE5 project and then migrated the UE4.27 actors (right click on actor → Migrate → select new project) with all dependencies to the new project. Only a few adjustments and new plugins were necessary to make it work.

Good luck.