SharePoint部署

一、数据库权限

二、wps部署

在项目-属性-生成事件中

生成事件

命令:xcopy "$(TargetDir)*.dll"  "$(SolutionDir)DeploySharePoint2013" /s /Y /C /R 将项目生成的dll拷贝到指定目录方便后续dll拷贝操作

发布网站(全局/webapplication)到url,将wps文件拷贝到c盘

webapplication发布需要将dll复制到网站的虚拟目录(C:inetpubwwwrootwssVirtualDirectories80in)

Windows powerShell中执行:Add-PSSnapin Microsoft.sharepoint.powershell

SharePoint命令行管理程序:Add-SPSolution -LiteralPath c:SHHYPortal.SP.wsp

Update-SPSolution -Identity SHHYPortal.SP.wsp -LiteralPath c:SHHYPortal.SP.wsp -GACDeployment -Force

Update-SPSolution -Identity SHHYPortal.SP.wsp -LiteralPath c:SHHYPortal.SP.wsp -GACDeployment -Force -FullTrustBinDeployment

三、直接vs部署

1、http://shhysp/_layouts/15/viewlsts.aspx 设置网站集管理员

1、项目属性中设置好程序集部署目标

2、设置站点URL

3、拷贝dll

4、右击项目点击部署


四、附加到进程调试

 /_layouts/15/ManageFeatures.aspx

layouts物理路径:C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions15TEMPLATELAYOUTS

原文地址:https://www.cnblogs.com/King-JJ/p/4955972.html