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

Thanks for your solution .. it work here the code for unreal 5.3

	IEnumerable<TargetType> SupportedTargetTypes = new TargetType[] { };
	InvalidReason = string.Empty;

	try
	{
		SupportedTargetTypes = ModuleType
			.GetCustomAttributes<SupportedTargetTypesAttribute>()
			.SelectMany(x => x.TargetTypes)
			.Distinct();
	}
	catch
	{
		string moduleName = (ModuleType != null) ? ModuleType.Name : "<null>";
		InvalidReason = $"TargetType '{TargetRules.Type}' : Failed to get SupportedTargetTypesAttribute from '{moduleName}'";
		return false;
	}

Have a nice day