我写了一个电源shell脚本,将我的wsp部署到到sp 2010服务器。它首先检查解决方案是否已经存在并部署如果是,请再次缩回和重新部署。它仅部署到特定的Web应用程序。问题是“撤回”,重新上市正在努力完成。虽然来自VS2010,没有问题,它立即部署。我正在使用一个非常基本的WSP(只有一个Web部件,另一个功能接收器根本没有任何东西)。所以我不确定为什么这么多时间。请建议。

有帮助吗?

解决方案

When you deploy/retract your solutions using PowerShell/stsadm it creates a timer job. That timer job operation is invoked by the sptimerv4/owstimer.exe process in the background and starts every 60 seconds. Sometimes there are other timer jobs in the queue which makes it take longer times. If you're only doing it on a single machine (dev box) you can add the -Local parameter to the cmdlet, this invokes the job directly.

许可以下: CC-BY-SA归因
scroll top