Customizing the Build Event Open method
By specifying a custom build event, you can run the command automatically before the build starts or after it finishes. In Visual Studio, go to the Project Properties menu by right-clicking the project-"property.
Syntax for custom build Events
The build event follows the same syntax as the DOS command. To create a folder under a directory when you start debugging
mkdir C:\Logs
A list of built-in macros allows you to quickly enter a catalog of items
Click "Macros"-"Select the macro you want to insert from the" macro list "-click" Insert ".
Custom Build Events for apps
Perform some file operations before/after project build events, such as you can synchronize your configuration files, dynamic library files while writing unit tests, and synchronize Debug and release files,...。
Reference documents
(v=vs.140). aspx