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
1
vote
1 answer

Automatically specifing a default post-build event in VS 2010

Is there a way in Visual Studio 2010 to automatically specify a post build event command? Right now I have to keep putting in the same command for every new project I create. Is there a way to have all new projects default to a specific post build…
Icemanind
  • 47,519
  • 50
  • 171
  • 296
1
vote
1 answer

Console build with post-build events in Visual Studio

I'm using CMake. That is the cmake "install" instruction: install(TARGETS MainProject RUNTIME DESTINATION "${PROJECT_SOURCE_DIR}/Install/bin" ARCHIVE DESTINATION "${PROJECT_SOURCE_DIR}/Install/lib" LIBRARY DESTINATION…
Arkady
  • 2,084
  • 3
  • 27
  • 48
1
vote
1 answer

Edit js file in postbuild event

I have post build events set up already for copying files for me dependent on ConfigurationName and want to be able to set an "environment variable" in a config (js) file on client side of an angular application to allow debug info to be visible or…
CheGuevarasBeret
  • 1,364
  • 2
  • 14
  • 33
1
vote
0 answers

MSBuild post build events not running in windows 10

I've upgraded to a new windows 10 development machine. Everything works great, except post-build events in msbuild/visual studio. This is for any project, new or existing. They all work fine on other people's windows 7 machines. They work fine on…
Jim T
  • 12,336
  • 5
  • 29
  • 43
1
vote
1 answer

Is it possible to make Gyp generate a pre (or post) build step?

I'm using gyp to generate Visual Studio projects, make files, and Xcode projects. I would like to have a pre-build step that calls a command line tool which generates some code that I later compile in, is this possible? Incidentally, in cmake I do…
kmp
  • 10,535
  • 11
  • 75
  • 125
1
vote
1 answer

VS 2015 "Build Dependencies -> Build Customization" always triggers PreBuild and PostBuild

I have a VS 2015 C++ project with both PreBuild and PostBuild steps. In addition I have a Custom Target added to the project by "Build Dependencies -> Build Customization". The Custom Target runs a Perl script which runs nmake building files with…
1
vote
1 answer

How to see the build events for all projects in Visual Studio?

I want to rebuild my entire solution, but I want to make sure that the projects have no post-build events. Is there a quick way in Visual Studio to do this? I would rather not check the properties of every single project one by one.
pushkin
  • 9,575
  • 15
  • 51
  • 95
1
vote
1 answer

How to query a msi primary output to get the assembly version?

What I want is get the version that is on the primary output keyoutput properties and rename it from myapp.msi to myapp-v1.0.15.45.msi in-vs-setup-project-output-filename I know how to query the msi by using the code I found in this link, here is…
1
vote
2 answers

Visual Studio 2015 - Running Post Build Events only when built from the GUI

I have a Visual Studio 2015 solution that builds 10 projects. In each project there are a pre and post build event to call ant to resolve and publish the code. These events should be triggered before and after every project build, so moving the…
1
vote
1 answer

How can I run a post build event after app packages are created for the store in Visual Studio 2015?

I wrote a post build script to process some of the files created when Visual Studio builds my Windows app for the Windows Store. Unfortunately, the post build event is triggered before the .appxpackage files are created. Does anyone know of a work…
1
vote
0 answers

Silence post-build events in Visual Studio output window

When building solutions, post build events are displayed verbose, unless I put > NUL after every command. Is there a way to silence all successful post-build commands? Otherwise, the log seems very verbose, from the quantity of commands executed.
bytecode77
  • 14,163
  • 30
  • 110
  • 141
1
vote
1 answer

How to use generated variables from one job in jenkins build flow and utilize those into next job in the same jenkins build flow

I have 3 jobs configured on jenkins build flow and the desired activity is to get dynamic variables resulted from post-build task of b1 to b2 and variables of b2 to b3 and so on so forth. list = ["foo", "bar"] b1 = build("ExecuteJob1", param1:…
1
vote
1 answer

Custom post build check with error message

I want to launch my specific code from post build event and see any error messages as build errors. To do this I created another console application in a solution and added it to Build-Postbuild list in the main project settings. The problem is that…
Vlad
  • 3,001
  • 1
  • 22
  • 52
1
vote
2 answers

Passing a variable in sqlpackage containing filepath

so i am trying to exectue a ps script directly after tfs build. while the script runs post-build there is an error that says sourcefile must have a valid .dacpac extension. Below is the code #Powershell script to capture the latest version of the…
1
vote
1 answer

BeforeBuild and AfterBuild events in Visual Studio Tools for Cordova 2015 Update 5

I am trying to use pre and post build in my Visual Studio 2015 (TACO) project. As outlined in PreBuildEvent and PostBuildEvent on Visual Studio 2015 Tools for Apache Cordova I have added elements to my .jsproj file so that it now ends as…
Chris
  • 233
  • 2
  • 13