开发者

Sharepoint wsp deployment why is setup.bat 100 times slower than Visual Studio deployment?

开发者 https://www.devze.com 2023-02-20 10:10 出处:网络
When right-clicking in Solution Explorer and deploy - it takes seconds. When running setup /uninstall h开发者_JAVA技巧ttp://site from the \\bin folder of the solution, it takes 13 minutes?! There are

When right-clicking in Solution Explorer and deploy - it takes seconds.

When running setup /uninstall h开发者_JAVA技巧ttp://site from the \bin folder of the solution, it takes 13 minutes?! There are 8 features to activate, but my question is why does it take so long; and what is the equivalent command to deploy it the way Visual Studio [2005] does to Sharepoint [2007]?


When VS deploys a WSP it does so using the equivalent of the -local switch. This flag allows a synchronous deployment since it only occurs on the server the command is being run from. Obviously, this is not an option for a multi-server deploy.

If your BAT file is not using this switch then the jobs are being queued to the Timer service for eventual execution. This may be a part of your issue, although 13 minutes seems too long to be explained by this alone.

Here's one example of an STSADM command that offers the -local switch.


VS deploys solutions immediately so that you could troubleshoot any problems right away.

You can do that manually for yourself:

Following your setup command, run this:

%stsadmpath%\stsadm -o execadmsvcjobs

Infact this is part of VS deploy commands.

0

精彩评论

暂无评论...
验证码 换一张
取 消