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 '/'.