i have defined some site columns which were referenced by some content types. These are used for a ListDefinition and a ListInstance. (Everything is in one Visual Studio Project). Now i would like to embed this list instance to an aplication page, beeing able to show that list and some other stuff at the same page. I definetly want to show the correct SharePoint list and not building (for example) a table.
In some other tests i was able to successfully use "WebPartPages:XsltListViewWebPart..." but in that test i created the list by the SharePoint webpage and not through visual studio. The problem with "WebPartPages:XsltListViewWebPart" is, that i need to enter the correct ListId. I added the ID attribute in the Elements.xml of the ListInstance to avoid a dynamically built id but i always get the error message, that the list was not found (probably removed). I checked the list id of my list (in the address bar of my browser when i click edit list) and found out, that the list id changes every time i build/deploy my project although the id attribute of my list instance definition.
Can please somebody help me, correctly embedding my list?