i've created a SiteDefiniton project and a Sharepoint ListDefinition project. In the SiteDefinition I created a listinstance of my template, but in deployment the activation of the ListInstanceFeture fails with following error:
"Error 1: Error occurred in deployment step 'Activate Features': Feature 'cb490e2c-b67d-4465-a80f-debffa11aae7' for list template '2010001' is not installed in this farm. The operation could not be completed."
My ListInstance is just a test, so the Elements.xml is as empty as possible.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListInstance
Title="Newsletter"
OnQuickLaunch="TRUE"
TemplateType="2010001"
Url="Lists/Newsletter"
FeatureId="CB490E2C-B67D-4465-A80F-DEBFFA11AAE7"
Description="Enthält Informationen über alle bisher versandten Newsletter.">
</ListInstance>
</Elements>
I deployed the ListDefinition project separatly and created a ListInstance from the Template... It works, so where are the failure? By now I would be pleased for every little hint.
edit: List Definition Schema.xml (There are some more Fields but they are commented out for testing.)
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="NewsletterTemplate" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/NewsletterTemplate" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentTypeRef ID="0x01">
<Folder TargetName="Item" />
</ContentTypeRef>
<ContentTypeRef ID="0x0120" />
</ContentTypes>
<Fields>
<Field Name="Title" StaticName="Title" DisplayName="Titel" Type="Text" FromBaseType="TRUE" ID="21A9B1CC-CBEA-4D8A-9AEF-0F1BD7F1BE97" Required="TRUE"/>
</Fields>