ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core Namespace / CustomProjectItemBase Class / IncludeInPackages Method
Set to true if the item should be included

IncludeInPackages Method
Use to include the custom item within packages and project templates
Syntax
public void IncludeInPackages( 
   bool includeInPackages
)

Parameters

includeInPackages
Set to true if the item should be included
Remarks
This method should be called by the item container's CustomProjectItemContainer<T>.CreateItemPrototype method when the item is being created. By default items are not included (in packages, etc) so calling this method on a newly created item with "false" is redundant.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.4 or higher.
See Also