viernes, 20 de abril de 2012

Cómo desplegar soluciones WSP de SharePoint 2010

Aprovecho esta entrada para registrar cómo desplegar una solución WSP en un servidor SharePoint 2010 utilizando PowerShell. Lo tenéis perfectamente explicado aquí. Os lo resumo:

Añadir
Add-SPSolution “C:\..\solucion.wsp"

Install-SPSolution –Identity  solucion.wsp –GACDeployment
o
Install-SPSolution –Identity   solucion.wsp  –WebApplication http://localhost:puerto –GACDeployment

Actualizar
Update-SPSolution –Identity  solucion.wsp –LiteralPath “C:\..\archivo.wsp” –GacDeployment

Eliminar
Uninstall-SPSolution –Identity solucion.wsp –WebApplication http://localhost:puerto
Remove-SPSolution –Identity solucion.wsp

Para activar y desactivar características
Enable-SPFeature –Identity MyFeatureNameOrGuid –url http://localhost:puerto
Disable-SPFeature –Identity MyFeatureNameOrGuid –url http://localhost:puerto

Estoy casi convencido que voy a ser yo mismo el que más visite esta entrada. =)


No hay comentarios:

Publicar un comentario