Change the Feature Order of SharePoint Solution in VisualStudio

Leave a Comment
Hi folks,

In a following post we will see how to overcome the feature dependency if we have multiple features in single solution where features have dependence with each other.

For Example let us consider a situation where you are developing site columns and content types using declarative xml.You have created 2 features , 1st one is for Site Columns and 2nd for Content Types.

If you are deploying solution through VS and if it is activating the Content Type feature first then you will get error.

To Overcome this we have to follow below approach i.e, we need to change the feature activation order in VS.

In my Solution I have features like this


Navigate to Package folder and click on it.


Select the feature and change the Order as shown in below snap shot.


Now Deploy your solution.


Thanks .





Related Post

0 comments:

Post a Comment