# \[UBT Bug\] No longer able to compile plugins in standalone since 5.3

**URL:** <https://forums.unrealengine.com/t/ubt-bug-no-longer-able-to-compile-plugins-in-standalone-since-5-3/1318659>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, ubt, Plugins\
**Created:** [October 1, 2023, 11:57am UTC](https://forums.unrealengine.com/t/ubt-bug-no-longer-able-to-compile-plugins-in-standalone-since-5-3/1318659 "2023-10-01T11:57:54Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Sam\_Swain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sam_swain/32/598801_2.png) [@Sam\_Swain](https://forums.unrealengine.com/u/Sam_Swain)\
**Post date:** [June 21, 2024, 11:17am UTC](https://forums.unrealengine.com/t/ubt-bug-no-longer-able-to-compile-plugins-in-standalone-since-5-3/1318659/11 "2024-06-21T11:17:14Z")

</div>

Hacking around I managed to both a) identify the problem plugins, and b) make the build tool immune to this crash.

1. Open C:\Program Files\Epic Games\UE\_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.sln in Visual Studio
2. Make Configuration/ModuleRules.cs writable
3. Find the IsValidForTarget method
4. Replace the first line of code with the code below.
5. Compile with Build → Build Solution (make sure it completes ok and says it’s updated the C:\Program Files\Epic Games\UE\_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll file.
6. Attempt to build your project/plugin again
7. Look in the “C:\Users\__yourusername_\_\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.4” or similar folder for the .txt file with the long name.
8. In it search for “Failed to get” and see if the new code has triggered. The start of the line will tell you the plugin.

```auto
			IEnumerable<TargetType> supportedTargetTypes = new TargetType[] { };
			try
			{
				supportedTargetTypes = moduleType
					.GetCustomAttributes<SupportedTargetTypesAttribute>().SelectMany(x => x.TargetTypes).Distinct();
			}
			catch
			{
				string module_name = (moduleType != null) ? moduleType.Name : "<null>";
				invalidReason = $"TargetType '{targetRules.Type}' : Failed to get SupportedTargetTypesAttribute from '{module_name}'";
				return false;
			}

```

---

_[View the full topic](https://forums.unrealengine.com/t/ubt-bug-no-longer-able-to-compile-plugins-in-standalone-since-5-3/1318659)._
