简体   繁体   English

SharePoint:如何将WSP程序包自动部署到远程SharePoint Server?

[英]SharePoint : how to automatically deploy a WSP package to a remote SharePoint Server?

I'm developing on a machine that is not the MOSS Server. 我正在非MOSS服务器的计算机上进行开发。 I have Visual Studio and WSP builder installed. 我安装了Visual Studio和WSP构建器。 WSP builder is awesome because it can automatically create WSP Packages from within the Visual Studio IDE. WSP构建器很棒,因为它可以在Visual Studio IDE中自动创建WSP包。 However it seems the deploy functionality only works on the local dev machine. 但是,似乎部署功能仅在本地开发机上有效。

Is there an easy way to deploy a WSP package to a remote SharePoint server? 有一种简单的方法可以将WSP程序包部署到远程SharePoint服务器吗? I want it to do the following 我希望它执行以下操作

  • Add the solution 添加解决方案
  • Deploy globally 全球部署

If the solution already exists, it should first retract the solution, then upgrade it, then redeploy it. 如果解决方案已经存在,则应首先撤回解决方案,然后升级并重新部署。

Anything like this exist? 这样的东西存在吗? Thanks in advance 提前致谢

Create a batch script (*.cmd, *.bat) that does everything you need, when you run it on the server. 创建一个批处理脚本(* .cmd,*。bat),当您在服务器上运行该脚本时,它将执行所需的所有操作。

Then, from your local machine, using psexec tool , you can call 然后,使用psexec工具在本地计算机上调用

psexec.exe \\servername -u domain\user -p secretpassword "c:\sharepoint_scripts\yourscript.bat"

bear in mind that psexec calls the script as if it was running from c:\\windows on that computer. 请记住,psexec调用脚本的方式就像是从该计算机上的c:\\windows运行一样。

嗯,在将WSP复制到目标服务器后,也许使用psexec之类的方法远程运行stsadm。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM