SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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.