I have a content type, a list definition based on the content type and also a list instance.

Lets suppose thats all I have in the project. Its on the dev server, everytime I deploy using vstudio the list ITEMS are gone.

How can I avoid this?


2 Answers 2


When developing solutions for SharePoint 2010 Visual Studio automaticly resolves conflicts when redeploying a solution.

The conflict resolution for a list-instance is to delete the list and then recreate it on redeployment.

To keep your list, disable automatic conflict resolution. See this blog for images Beware that not resolving conflicts may result in un-updated lists.

If it is a limited set of items you could consider adding them to the list instance definition, so that the items are (re)created when the list is instantiated. And simple example of this van be found on MSDN.

  • 2
    Is there no way to update the list without losing data?
    – xdumaine
    Commented Nov 20, 2013 at 15:15
  • Deploy the wsp using powershell.
    – Aveenav
    Commented May 19, 2014 at 14:20

You can also make some check for existence of your list in feature receiver while adding list.. If exist - skip list creation.

  • How would you do that? How would you prevent declarative list creation from happening?
    – Andrey
    Commented May 22, 2013 at 16:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.