This version of Unity is unsupported.
Method group is Obsolete

AssemblyBuilder.buildTargetGroup

Obsolete This feature is being deprecated and will be removed in the future. Similar functionality can be achieved using the Roslyn compiler. public BuildTargetGroup buildTargetGroup;

Description

BuildTargetGroup for the assembly build.

Defaults to EditorUserBuildSettings.activeBuildTargetGroup.