0

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.

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.