1

I am using sp2013 and vs2013. I have a solution with some list instances and contenttypes. Every time I do a deployment from Visual Studio the existing listinstance will be retracted and I lost my items. There will come a new listinstance which is clean without items. I forget some option in Visual Studio to prevent this behaviour. How can I setup vs to prevent retracting this listinstance?

2

By default, you should see a Deployment Conflicts dialog box when you redeploy your solution to your development computer; this should have warned you that your existing list instance would be overwritten. To change this behavior, select the List Instance in Solution Explorer, and then change the Deployment Conflict Resolution property (in the Properties window) to None. If this property is set to Automatic, then existing items will be automatically overwritten without the dialog.

http://msdn.microsoft.com/en-us/library/ee330922(VS.100).aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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