Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

It appears Visual Studio 2010's out of the box functionality for Deploy retracts and installs my features. Can I tell it instead to perform an update-spsolution instead of removing the entire thing?

This isn't a real-life scenario as on test and production environments i will be performing an update, not a removal and reinstall.

Thanks!

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

You can install CKSDev extension using VS.NET extension Manager, if you have not already done so. It provides a project configuration called Upgrade Solution. You can switch to it by going to project properties as shown below:

enter image description here

By going to Project’s property pages (SharePoint tab), you can also inspect what actions it takes.

share|improve this answer
    
FANTASTIC THANK YOU! –  David Lozzi Jan 17 '12 at 20:44
add comment

Using CKSDev you can also create your own deploying configuration (SharePoint tab in project's properties) with extra steps that CKSDev adds, including call to external powershell scripts. I like this extension a lot :)

share|improve this answer
1  
It's my favorite too! –  Ashish Patel Jan 17 '12 at 20:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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