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

I have created a new Content Type. How do I publish it using Update-SPSolution and feature upgrading?

I added the following Code to my Feature Manifest:

<UpgradeActions>
   <VersionRange BeginVersion="1.0.0.3" EndVersion="1.0.0.4">
      <ApplyElementManifests>
         <ElementManifest Location="NewContentType\Elements.xml"/>
      </ApplyElementManifests>
      <CustomUpgradeAction Name="UpdateVersion"/>
   </VersionRange>
</UpgradeActions>

After Feature.Upgrade(bool) the ContentType is not installed.

share|improve this question
add comment

1 Answer 1

Assuming that the previous version was 1.0.0.3 and NewContentType\Elements.xml contains the ContentType it should be ok.

If the previous version was anything by 1.0.0.3 upgrading won't do anything as your version range specifies 1.0.0.3 <= version < 1.0.0.4.

share|improve this answer
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.