Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pre-Build/Post-Build Events in Visual Studio for Mac

I'm pretty new to Visual Studio, and I can't seem to find where to go to find pre and post build events. I know how to do it on Windows, but i'm on Mac currently and it seems to work differently. If anyone could help to direct me that would be great! I'm specifically looking for post-build events, but I would assume they are in the same place.

like image 849
Flarefin Avatar asked Nov 12 '18 15:11

Flarefin


People also ask

How do I open a build event in Visual Studio?

Go to Solution Explorer and right-click on the project then select Properties then go to the Build Events tab.

What is pre build and post build?

Pre and post-build plugins enable you to apply code before or after the build process to prepare, verify, and test data. Before a build begins, you can: Bring in files/prepare data. Validate your data and cancel a build if there's a problem.

How do I debug a post build event in Visual Studio?

Another way is to check the bin\debug dir for 'PreBuildEvent. bat' or 'PostBuildEvent. bat' which are the file that Visual Studio creates and run during the build events, if there is an error the files remain in the output dir and you can run them manually and spot the error.

How do I create a post build event in Visual Studio?

In the Post-build event command line box, specify the syntax of the build event. Add a call statement before all post-build commands that run . bat files. For example, call C:\MyFile.


1 Answers

Open the Project's Options and goto:

Build / Custom Commands / Select a project operation

enter image description here

like image 118
SushiHangover Avatar answered Nov 17 '22 00:11

SushiHangover