About post build event

Source: Internet
Author: User

This morning, when modifying the post build event of the project, several copy commands were called to copy the generated DLL and PDB to the specified target.

Copy $ (outdir)/$ (targetfilename) destdir

It is found that the command is always wrong. After checking for half a day, we found that the outdir directory is set to be separated by '/' rather. Use two types of separation in the VC Project

It can run OK, but '/' is not supported in the command line tool. You can simply enter the Copy command in the command line to test it.

In addition, the copy command also has a special purpose for the '+' number, which needs to be processed. If you encounter a file name with '+' during copy, it will fail. In this case, you 'd better enclose it.

 

To sum up, we recommend that you maintain consistency when setting and modifying the project directories related to VC, and use '/'.

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.