Visual Studio copies the DLL or WSP generated after delop to the specified directory

Source: Internet
Author: User

When using VS to develop a SharePoint project, there are a lot of project, each project will generate a WSP package, if you manually find the WSP file, copy it, copy it to the server, and then deploy, there is a bit of trouble.

So write a batch command, each time the successful deploy will automatically run this command.

Right-click Project, Properties, build Events, fill in the batch command in Post Build event command line, because the command of VS itself is not written.

The following command is written in Copywsp.bat:

copy/y c:\batter\solutionn\solutionname\common\bin\debug\*.wsp C:\Batter\/y C:\Batter\Solutionn\ SOLUTIONNAME\TIMEJOB\BIN\DEBUG\*.WSP C:\Batter\
/y C:\batter\solutionn\solutionname\webpart\bin\debug\*.wsp C:\Batter\
Pause

Visual Studio copies the DLL or WSP generated after delop to the specified directory

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.