Static link library project makes exe build output

I have added a project to ue4 solution, Using

  1. target.cs

TestLibTarget(TargetInfo Target)
{
Type = TargetType.Program
}

  1. build.cs
    SetupBinaries(…)
    {

    new UEBuildBinaryConfiguration(InType: UEBuildBinaryType.staticLibrary, …)
    }
    but UBT makes exe file.

I debug it and I found a Issue.

UnrealBuildTool::RunUBT( ) →
UEBuildTarget::CreateTarget( ) →
UEBuildTarget::CreateTarget( ) →
UEBuildTarget::UEBuildTarget( ) →
UEBuildTarget::MakeBinaryPaths("",AppName, UEBuildBinaryType.Executable, TargetType, …)

UBT always use “UEBuildBinaryType.Executable” binary type at this timing.
SetupBinaries() function is called later. but it doesn’t makes affect to binary output extension.

Is this situation a Bug?

Hey Totw-

The functionality that you’re trying to achieve isn’t supported by UE4 currently. A feature request has been entered that should give a clearer explanation of what is going on when attempting this kind of action.

Cheers