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

RTC post-build deliver option with Jenkins build

Is it possible to execute a Post-build Deliver when using Jenkins server with RTC source? This is my process; When a job is started Jenkins connects to RTC Source using the Rational Team Concert plugin and fetches the required code. (Connects to…
cdugga
  • 3,849
  • 17
  • 81
  • 127
2
votes
0 answers

Postbuild event exited with error code 1

I have a project in Visual studio 2013. I want to run unit tests after every build. I have the following Post build event command line. "C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" /testcontainer:"G:\VS PROG\CMP…
AnandhaSundari M
  • 1,098
  • 2
  • 10
  • 23
2
votes
5 answers

How do I add post-build events to InstallShield Limited Edition

After I build my InstallShield I want to copy the outputted MSI file to some partocilar directory ..."\Documents\Visual Studio 2012\Projects\UpdateAppTest\Setup1\Setup1\Express\SingleImage\DiskImages\DISK1\setup1.msi" to some directory on my…
TruthOf42
  • 2,017
  • 4
  • 23
  • 38
2
votes
2 answers

Add Jenkins Groovy Postbuild step to all jobs

How can the same Jenkins Groovy Postbuild Plugin step be added to all jobs? We have 50+ jobs, so it is too hard to copy-paste the link to desired groovy code to every job.
daniilyar
  • 2,602
  • 3
  • 22
  • 25
2
votes
2 answers

Auto rename compiled file in Delphi XE2

I use Delphi XE2 and I have a project called PGetBase. In this project, there is a module with a constant declaration. For example: const    FragH = 5;    FragW = 4; ... After compiling, the file is called PGetBase.exe. Is it possible to make the…
user2996299
  • 123
  • 3
2
votes
1 answer

PostBuildEvent Multiple script error handling

In my PostBuildEvent I call a .bat file for convenience (editing, source control etc): call "$(ProjectDir)..\SolutionItems\PostBuild.bat" "$(ProjectDir)" $(ConfigurationName) PostBuild.bat: echo ProjectDir: %~1 ConfigurationName: %2 rem echo…
2
votes
1 answer

Copy output of one project to output of other project

I have two C# projects. One is MainProject(exe) and other is ModuleProject (dll). What I want is that when I build my Moudule project, a copy of its output dll is copied to MainProject output folder. If I am building project in debug then it should…
fhnaseer
  • 7,159
  • 16
  • 60
  • 112
2
votes
2 answers

Is there any standard for post build events within Visual Studio?

I am working on a VS solution that utilizes the post-build events to copy files into a deployment project that packages the files. Does anyone know if there is any best practice in how to move files around to place in an MSI?
Eric
  • 2,202
  • 2
  • 26
  • 30
2
votes
1 answer

Output Window Progress Display

I have a project with a few post-build event commands. These commands take some time to complete and also have console output. If it matters, the commands are PowerShell commands/scripts. What I've found is Visual Studio will act like it is not…
HotN
  • 4,216
  • 3
  • 40
  • 51
2
votes
2 answers

visual studio 2012, postbuild event, bat file not creating new file (not executing)

I have a bat file with code: echo Hello There > Result.txt @exit 0 File is located in folder named "batch" which is located in the project root. I am calling it with this code in post-build event: call "$(ProjectDir)batch\post.bat" I am using…
Ivan Davidov
  • 823
  • 1
  • 9
  • 24
2
votes
2 answers

Post-build event can't be executed

I've converted an old Visual C++ 6.0 project to a new Visual C++ 2010 one. It functions but I have a problem with the post build event which I took from the old project. It registered the target file (an .ocx) on the computer: copy…
relapse
  • 31
  • 2
  • 6
2
votes
1 answer

Visual Studio post-build: keep console open?

My post-build event works, but in some situations I am quite sure it is showing an error in the console window. However, because the window closes immediately, I'm not able to read any of it. This is the build event: if $(ConfigurationName) ==…
Lee White
  • 3,649
  • 8
  • 37
  • 62
2
votes
2 answers

Is there any macro to get the root directory of the TFS Sourcecontrol in Visual Studio?

Is there any built-in macro to obtain the TFS Sourcecontrol Root directory in Visual Studio? For example just like $(ProjectDir), I would use $(TFSSourceControlRoot) or something like that? The reason I need this is to in order to use this path in…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
2
votes
1 answer

Visual Studio 2012 Signing

I would like to have Visual Studio sign my assemblies. I got past the point where I can specify my PFX file without any complaints. That was not easy, as I had two of errors. Yes, I had to make sure that I used openssl (a stackoverflow article…
Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
2
votes
2 answers

A unit test cannot access settings in another project

In Visual Studio, I have a unit test that calls a method on a class in another project - let's call it MyClass.A(). Inside A(), it accesses a setting in MyClass' project properties. When I use MyClass.A() during normal runtime, it gets the…