Upgrade a List definition WSP and install the feature.
In order to avoid the data loss from an existing list, while creating a new list definition in the same solution,Follow the below steps....
1.Create a new list definition in a existing list definition solution.
2.Create a new feature (ex:"New_List_Feature").
3.Include the newly created list definition to a newly created feature.
4.Build and Publish the list definition WSP from a solution.
5.Upgrade a WSP using the following power shell script.
(Update-SPSolution -Identity wspname -LiteralPath Physicalpath -GACDeployment)
Update-SPSolution -Identity ListDefinition.wsp -LiteralPath C:\Users\username\Desktop\ListDefinition.wsp -GACDeployment
6.Install the newly created Feature using powershell script.
(Install-SPFeature FeatureFolderName)
Install-SPFeature "ListDefinition_New_List_Feature"
where folder name available in the C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\FEATURES
1.Create a new list definition in a existing list definition solution.
2.Create a new feature (ex:"New_List_Feature").
3.Include the newly created list definition to a newly created feature.
4.Build and Publish the list definition WSP from a solution.
5.Upgrade a WSP using the following power shell script.
(Update-SPSolution -Identity wspname -LiteralPath Physicalpath -GACDeployment)
Update-SPSolution -Identity ListDefinition.wsp -LiteralPath C:\Users\username\Desktop\ListDefinition.wsp -GACDeployment
6.Install the newly created Feature using powershell script.
(Install-SPFeature FeatureFolderName)
Install-SPFeature "ListDefinition_New_List_Feature"
where folder name available in the C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\FEATURES
Comments
Post a Comment