Detailed description of custom build events in Visual Studio

Source: Internet
Author: User

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

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.