PowerShell-Deploy the SharePoint solution package

Source: Internet
Author: User

The following describes how to develop and deploy the HR Leave system:

Installation and deployment

Add-SPSolution-LiteralPath E: \ Alfred \ Project \ SSI \ Workflow \ TFS \ AZ. SharePoint. ssi \ AZ. SharePoint. ssi \ bin \ Debug \ sharepoint. leave. wsp

Install-SPSolution-Identity sharepoint. leave. wsp-GACDeployment

Description: A new deployment method. If there are multiple projects or third-party dll references in this solution, that is, there are multiple dll assembly files, you need to use the parameter-GACDeployment, in this way, the referenced dll file will be added to GAC.

Upgrade deployment

Update-spsolution-identity sharepoint. leave. wsp-literalpath D: \ TFS \ SharePoint. HR \ SharePoint. LEAVE \ bin \ Debug \ sharepoint. leave. wsp-GACDeployment

Note: If the solution contains TaskForm (using InfoPath) and TaskForm is updated, you must manually reactivate TaskForm's Feature. Otherwise, only this command can be executed.

Example of upgrading and deploying feature containing TaskForm

Update-spsolution-identity lj. hr. wsp-literalpath D: \ TFS

\ LJ. SharePoint. HR \ LJ. SharePoint. HR \ bin \ Debug \ lj. hr. wsp-gacdeployment

 

Uninstall-SPFeature-Identity "a7c5fb24-9df2-4e58-8bc6-5fd79b08c757"

Disable-SPFeature-Identity "a7c5fb24-9df2-4e58-8bc6-5fd79b08c757"-URL "https://dev61.emdev.azcollaboration.com/operations/Operations"

 

Install-SPFeature-path "LJ. SharePoint. HR_HR.levaeWorkFlow"

Enable-SPFeature-Identity "a7c5fb24-9df2-4e58-8bc6-5fd79b08c757"-URL "https://dev61.emdev.azcollaboration.com/operations/Operations"

Note: LJ. SharePoint. HR_HR.levaeWorkFlow is the Feature name.

Author: MingleLui
Source: http://mingle.cnblogs.com/

The following describes how to develop and deploy the HR Leave system:

Installation and deployment

Add-SPSolution-LiteralPath E: \ Alfred \ Project \ SSI \ Workflow \ TFS \ AZ. SharePoint. ssi \ AZ. SharePoint. ssi \ bin \ Debug \ sharepoint. leave. wsp

Install-SPSolution-Identity sharepoint. leave. wsp-GACDeployment

Description: A new deployment method. If there are multiple projects or third-party dll references in this solution, that is, there are multiple dll assembly files, you need to use the parameter-GACDeployment, in this way, the referenced dll file will be added to GAC.

Upgrade deployment

Update-spsolution-identity sharepoint. leave. wsp-literalpath D: \ TFS \ SharePoint. HR \ SharePoint. LEAVE \ bin \ Debug \ sharepoint. leave. wsp-GACDeployment

Note: If the solution contains TaskForm (using InfoPath) and TaskForm is updated, you must manually reactivate TaskForm's Feature. Otherwise, only this command can be executed.

Example of upgrading and deploying feature containing TaskForm

Update-spsolution-identity lj. hr. wsp-literalpath D: \ TFS

\ LJ. SharePoint. HR \ LJ. SharePoint. HR \ bin \ Debug \ lj. hr. wsp-gacdeployment

 

Uninstall-SPFeature-Identity "a7c5fb24-9df2-4e58-8bc6-5fd79b08c757"

Disable-SPFeature-Identity "a7c5fb24-9df2-4e58-8bc6-5fd79b08c757"-URL "https://dev61.emdev.azcollaboration.com/operations/Operations"

 

Install-SPFeature-path "LJ. SharePoint. HR_HR.levaeWorkFlow"

Enable-SPFeature-Identity "a7c5fb24-9df2-4e58-8bc6-5fd79b08c757"-URL "https://dev61.emdev.azcollaboration.com/operations/Operations"

Note: LJ. SharePoint. HR_HR.levaeWorkFlow is the Feature name.

Author: MingleLui
Source: http://mingle.cnblogs.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.