I have created a custom list definition with a lookup field using Visual Studio. Everything is working perfect.
After that I created a site definition using Visual Studio and added this custom list to the site definition using the onet.xml like this:
<List FeatureId="128987af-fc74-4707-9b4f-79b0a342b352" Type="10000" Url="Lists/Risiko_mgmt/AllItems.aspx" QuickLaunchUrl="/Lists/Risiko_mgmt/AllItems.aspx" Title="Ereignisse"></List>
Deployment was successful but when I create the site definition it says invalid fieldname pointing to the GUID of the lookup field.
What am i doing wrong?