I've an ListDefinition with some references to existing Content Types (provided by CTH) but when the list is created the content types are not added.
elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate
Name="MyDocLib"
Type="10081"
BaseType="1"
OnQuickLaunch="FALSE"
SecurityBits="11"
Sequence="110"
DisplayName="My Document Library"
Description="My Document Library List Definition"
Image="/_layouts/images/itdl.png"
DocumentTemplate="100"
DisallowContentTypes="FALSE"/>
</Elements>
schema.xml
<List xmlns:ows="Microsoft SharePoint" Title="My Document Library" Direction="$Resources:Direction;" Url="ProjectName-MyDocLib" BaseType="1" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentTypeRef ID="0x0101001239678203837B4FBA21976C8B194FFD02" />
<ContentTypeRef ID="0x0101001239678203837B4FBA21976C8B194FFD03" />
</ContentTypes>
(...)
web feature creation receiver code:
oWeb.Lists.Add(oWeb.Name, "my doc lib description", oWeb.Name, "featureWhereIsListDefID", 10081, "100", SPListTemplate.QuickLaunchOptions.Off);