简体   繁体   中英

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

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

When running setup /uninstall http://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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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