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
2 answers

Running batch file on post-build event : Error 46 The command .... exited with code 9009

I am trying to run a batch file on post-build event but I am failing. the following is my text which I have put my post-build event; E:\Documents\Tools\minify-css-files.bat And I am getting this; Error 46 The command…
tugberk
  • 57,477
  • 67
  • 243
  • 335
1
vote
1 answer

Post-build event in VS has ceased to work correctly

Hello I developed some plugin for Revit, and after build copy required files in some directory via post-build event. It works for some years but today it has some strange behaviour. I use such a script IF NOT "$(ConfigurationName)" == "DEV" ( …
1
vote
1 answer

MSB3073 exited with code 3 - Post Build Event in Visual Studio 2017

I am trying to perform registration of the DLL which was created during Build. In project properties -> Build Events -> Post-Build-Event i have added the below command to perform registration, regsvr32 /s /c "$(TargetPath)" This command is used to…
1
vote
1 answer

Post Build event that works on both Azure DevOps and Local PC

I have a VS2017 solution that Builds both locally and also on Azure DevOps. I now need to run a Post Build script to run an EXE. I have this working on my local machine, but I guess there will be an issue with the Path to the EXE which has been…
1
vote
1 answer

Can you have or mimic within Visual Studio 2008 a Solution Level Pre and Post Build Events?

I would like to know if there is anyway to get the ability to have or at least mimic Pre and Post build events at the Solution level not just at the project level within Visual Studio 2008? Therefor if possible I would like this functionality to be…
1
vote
1 answer

how to build multiple react applications at heroku using post build

I want to run heroku postbuild for 2 react apps which uses 1 single nodejs server. This is how I am currently building 1 react app which works perfectly fine "scripts": { "server": "nodemon index.js", "shop-user": "npm start --prefix…
Sagar Chavan
  • 249
  • 5
  • 14
1
vote
1 answer

Copying a file to another Project's Debug folder in the Post Build Event

This is driving me insane. With Prism's Modularity Quickstart, building a Module moves it to the main application's bin\Debug folder. When I try to do the same, the file goes to the application's bin\Release folder. What am I doing…
Rachel
  • 130,264
  • 66
  • 304
  • 490
1
vote
1 answer

Running npm install in a Visual Studio project's post-build event

In my project's post-build event, I have 2 tasks--run npm install and then run a gulpfile. I'm using Azure DevOps and in my build pipeline, when npm install is run within my project's post-build event, it only runs the npm install command and not…
natn2323
  • 1,983
  • 1
  • 13
  • 30
1
vote
0 answers

Use project context in nuget package

I have two project A and B. A project is a nuget package. B is project what have installed nuget package A. What I want is use post build event from project A in context of project B. It is mean that, I want use macros like…
Smiech
  • 11
  • 2
1
vote
0 answers

Visual Studio's post-build event

I am trying to copy some files on post-build event. These directories are on the same local repository. I was successful to copy these files on the target path however I am having some issues when I build the proj under the target path. I get code…
1
vote
1 answer

How to change assembly directory ? VS Couldn't find assembly in the folder

I'm trying to create a program for a Thermal Printer. I download a Hello World example from Intermec Website. But when i try to run it say :…
DirBear
  • 63
  • 1
  • 8
1
vote
1 answer

Glob files in post build custom command in CMake

I am generating C# bindings from C++ code using CMake and SWIG. Here is the part of the CMakeLists.txt that calls SWIG and also does what I want to do but in a non-automatic way: ... find_package(SWIG…
rbaleksandar
  • 8,713
  • 7
  • 76
  • 161
1
vote
1 answer

Copy built assemblies (including PDB, .config and XML comment files) to folder post build

Is there a generic way I can get a post-build event to copy the built assembly, and any .config and any .xml comments files to a folder (usually solution relative) without having to write a post-build event on each project in a solution? The goal is…
Kieron
  • 26,748
  • 16
  • 78
  • 122
1
vote
1 answer

Ignore Post-Build event errors

I have a C++ project which has a post-build event defined through the UI. The event starts an executable and its log messages are printed to the Output window. These messages can be error ones and the VS picks them up as build errors. However, I…
1
vote
1 answer

Application does not start after running setup with postbuild event

I've used the script from this thread: Run exe after msi installation? respectively this site: Mailbag: How can I customize an MSI in the Visual Studio setup/deployment project? The checkbox on the finished dialog shows up but my application doesn't…