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

as I am trying to wrap my head around silverlight and sharepoint there's one thing I find most irritating: Provisioned xap-Files and/or web-Parts remain fully active upon deactivation/uninstallation of the feature that originally provided them...

So the question is: What is a good practice: To remove those files (using a featureReceiver) on deactivation or on uninstallation or not to remove them at all?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If a feature is Deactivated, it means its not being used in the particular scope it is defined. Always the best practice would be to revert the actions that are done while activating the feature.

In your case, removing the files with an Event Receiver for Feature deactivation would be the best approach. This would also help in improving the site performance.

share|improve this answer

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.