Home > Backend Development > C#.Net Tutorial > A detailed introduction to custom build events in Visual Studio

A detailed introduction to custom build events in Visual Studio

零下一度
Release: 2017-06-26 15:37:53
Original
2329 people have browsed it

Custom build event opening method

By specifying a custom build event, you can automatically run a command before the build starts or after it completes. In Visual Studio, right-click the project -> Properties to enter the project properties menu.
A detailed introduction to custom build events in Visual Studio

Syntax for custom build events

Build events follow the same syntax as DOS commands. For example, when starting debugging, create a folder in a certain directory

mkdir c:\logs
Copy after login

You can enter the directory about the project more quickly through the built-in macro list
A detailed introduction to custom build events in Visual Studio
Click [Macro]-》From Select the macro to be inserted in [Macro List] -> click [Insert].

Application of custom generated events

Perform some file operations before/after the project generates events. For example, you can synchronize your configuration files and dynamic library files when writing unit tests; Synchronize Debug and Release files,...

Reference document
(v=vs.140).aspx

The above is the detailed content of A detailed introduction to custom build events in Visual Studio. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template