PackagingResults: Error: Failed to build UATTempProj.proj

Seemingly after adding C++ to a blueprint project I’ve been unable to package said project.
Everytime I do I encounter this error:

UATHelper: Packaging (Stadia): ERROR: Failed to build “C:/Program Files/Epic Games/UnrealEngine-4.27/Engine/Programs/AutomationTool/Saved\UATTempProj.proj”:
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\AllDesktop\AllDesktop.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Android\Android.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\BuildGraph\BuildGraph.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Gauntlet\Gauntlet.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\HoloLens\HoloLens.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\IOS\IOS.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Linux\Linux.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Localization\Localization.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Lumin\Lumin.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Mac\Mac.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\OneSkyLocalization\OneSkyLocalization.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Scripts\AutomationScripts.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\TVOS\TVOS.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\Win\Win.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Source\P
rograms\AutomationTool\XLocLocalization\XLocLocalization.Automation.csproj]
UATHelper: Packaging (Stadia): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.
) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin” directory. [C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Platform
s\Stadia\Source\Programs\AutomationTool\Stadia.Automation.csproj]
UATHelper: Packaging (Stadia):
UATHelper: Packaging (Stadia): (see C:\Program Files\Epic Games\UnrealEngine-4.27\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
PackagingResults: Error: Failed to build “C:/Program Files/Epic Games/UnrealEngine-4.27/Engine/Programs/AutomationTool/Saved\UATTempProj.proj”:
UATHelper: Packaging (Stadia): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Stadia): BUILD FAILED
PackagingResults: Error: Unknown Error

I’m not sure what to do to fix this. Has anyone encountered this before and know how to fix it?

You didn’t happen to find a solution to this did you? UATTempProj.proj won’t let me compile either :confused:

【UE4】Failed to build UATTempProj.proj_ue4 Packaging failed _Bob__yuan blog - CSDN blog

solution. fixed for me

2 Likes