Activate Sharepoint Feature when Solution is deployed
-
09-06-2021 - |
Question
I want to automatically activate a feature (specifically the SharePoint Server Publishing feature) automatically when I deploy a new wsp solution. Is this possible.
Where and How do I do this inside the visual studio Sharepoint project?
Solution
Hi Luis Please check this solution how to activate feature programmatically
OTHER TIPS
Look at the properties on the feature within VS -- there are a couple of options there that will control how the features behave when the solution is deployed via VS ( only ).. these settings have no affect on the solution once it is out of VS...
- Activate On Default - Indicates whether the feature is activated during installation
- Always force Install - Indicates whether the feature is installed by force, even though it is already installed.
- Auto Activate in Central Admin - Indicates that the feature is activated for administrators in CA...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow