Questions tagged [post-build-event]

An event to run scripts, macros or other custom actions after compilation.

Build events can be used to run scripts, macros, or other custom actions as a part of the compilation process.

Post-build events occur after compilation. These actions (if specified) are executed just after compilation.

How to specify build event - MSDN

511 questions
4
votes
1 answer

How can I copy dll files to the output directory in Qt not using QtCreator?

I have a Qt-based application that uses a number of dlls that are built outside of the project. These dlls are checked into source because we will not be rebuilding them very frequently (they take on the order of hours to build, I don't want those…
mmr
  • 14,781
  • 29
  • 95
  • 145
4
votes
1 answer

VS2010: Creating Post-Build Events (C#)

I want to add post-build events to a project, elegantly. I wrote them in batch first, but there's a little logic in them, so I thought it might be best to write them in a more readable language. The project is free open-source, so I want it to build…
drifter
  • 611
  • 5
  • 17
4
votes
2 answers

How to detect debug/release in visual studio pre/post-build command line?

How can I detect Debug or Release mode from command line pre-build or post-build window? I tested the code below, it works in code text window. Can it be convert to command line code? If can, how to do it, thanks. bool debugging = false; #if DEBUG …
Nano HE
  • 1,879
  • 7
  • 28
  • 39
4
votes
1 answer

Unity to iOS, info.plist Overwritten After PostProcessBuild

Background: Using Unity 2018.3.5f1 to build iOS Project Using PostProcessBuild Attribute to change info.plist Code worked in a different project in Unity 2018.2.1f1 I believe I'm doing what's suggested in this article: From Unity to iOS, how to…
4
votes
1 answer

How to send email with attachment in jenkinsfile (Groovy Script)?

I want to send email after post build action in jenkins. Hence I have write jenkinsfile as follows. But I need some groovy script for 1. Attachment for zip file 2. Before attaching the file , I need to convert the folder to zip format. Note: Please…
ARJUN
  • 51
  • 1
  • 2
  • 8
4
votes
2 answers

Execute exe file or bat file after compile with Visual Studio 2010

I would execute an exe file or a bat file after that the compilation of a C++ program ends. How could I do this? EDIT 1 This is my actual command line: start "C:\mypath\myexe.exe myarguments"
Stefano
  • 3,213
  • 9
  • 60
  • 101
4
votes
1 answer

zipalign is working manually but failing under Jenkins post build

zipalign is working manually but failing under Jenkins post build. I am running it on Ubuntu Aws ec2 instance. Please can someone help me in figuring out the issue. Jenkins Output : BUILD SUCCESSFUL Total time: 14.421 secs Built the following…
Ashish Karpe
  • 5,087
  • 7
  • 41
  • 66
4
votes
1 answer

Add warnings to project error list from the output of a post build tool

I have a command-line tool that I run as a post-build event. The tool does some analysis on the code in my project and generates a text file as its output. I'd like to take the text file generated by the tool and add its contents to my project's…
4
votes
1 answer

Echos from Post-Build events are only shown after build is complete

I am using Visual Studio 2017, but the same behavior was found in Visual Studio 2015. I have several steps in my post-build events and echo messages in between, like so echo Copying assets... xCopy "$(TargetDir)..\..\11 Assets" "$(TargetDir)" /i /s…
Jens
  • 6,275
  • 2
  • 25
  • 51
4
votes
1 answer

How to start Typescript compilation on post build event

I have a post build event that runs reflection code over some of my controllers to generate a definition of my routes in typescript. If I activate the TypescriptCompile option in my csproj, the DLL generation will fail if any Typescript file is not…
Dreeco
  • 290
  • 4
  • 10
4
votes
1 answer

Why outputting 'error: ' in Post-Build Event breaks my build in VS2012?

Adding cmd.exe /c "ECHO error : unexplainable" causes this: 1>------ Build started: Project: xxx, Configuration: Debug Win32 ------ 1>EXEC : error : unexplainable 1>C:\Program Files…
coda
  • 111
  • 6
4
votes
2 answers

Run Dotfuscator as a post build event

I'm using Dotfuscator in Visual Studio 2010. I want to run Dotfuscator as a post build event so every time I build a project Dotfuscator will run on the output DLL using a configuration I've created and I'll get a new Dotfuscated DLL without having…
brickner
  • 6,595
  • 3
  • 41
  • 54
4
votes
1 answer

Visual Studio 2013 post build event shows always explorer

I wanted to make some post build stuff in my project (VisualC++), which involves copying some files to output directory. Mostly they are resource files like icons and xml/css. The problem is, that it opens after every build the explorer no matter…
Citrus
  • 1,162
  • 1
  • 16
  • 38
4
votes
2 answers

How can I write a registry key from VS post build event?

One of the projects I work on need to read a registry key in order to determine some value. Usually the value will be written during installation. Because I want to run the project locally as well (without installation) I want to write that value…
Dror Helper
  • 30,292
  • 15
  • 80
  • 129
4
votes
0 answers

Run post-build event without build?

I have a web-application (using Visual Studio 2013) where most parts are loaded via plugins. During development I have post-build events on all the plugin projects to copy themself into the plugin folder of the main appliction so they are loaded…
Christoph Fink
  • 22,727
  • 9
  • 68
  • 113