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
3
votes
1 answer

Visual Studio Post Build Event - xcopy to different relative directory

Essentially, what I want to do is use a wildcard for a directory. The post build event is on a PageComponents project: PageComponents WidgetTemplates WidgetTemplate1 Usercontrol1 WidgetTemplate2 …
2
votes
1 answer

Using executable file from SVN on a post-build event

I am trying to use JSMin to compress Javascript on a .NET project, but since I don't want to create another dependency on the project I was wondering how could I have the executable file on my source control so that when building the project, so…
jAlpedrinha
  • 179
  • 1
  • 7
2
votes
1 answer

SQLite, copy platform specific dlls to bin folder

I need to get the respective SQLite x86/x64 dlls into the bin folder according to if I build to x86, x64 or Any CPU. Where/how would I specify this in an easy manner? Assume I have the dlls in /x86/ and /x64/ folders. I try this in the proj file,…
bretddog
  • 5,411
  • 11
  • 63
  • 111
2
votes
2 answers

Post-build line into makefile

I would like several files to be copied from "folderA" to "folderB" automatically after each "make". Does anyone know how to add a post-build line into the makefile?
user598208
  • 217
  • 3
  • 6
  • 15
2
votes
1 answer

FxCop 10.0 in post-build, [Location not stored in Pdb] in VS2010

I'm trying to get a post-build event up and running which will get the contents of FxCop warnings/errors into the Error List This is my post-build event commandline: "$(ProgramFiles)\Microsoft FxCop 10.0\FxCopCmd.exe" /file:"$(TargetPath)"…
enashnash
  • 1,578
  • 1
  • 15
  • 36
2
votes
1 answer

Visual Studio post-build copy failing (but works on the command line)

In VS 2010, I have a post-build event copying project assemblies into a common .dll folder. The .dll folder is mapped by a virtual drive (R:). On running, I get the following: The command "copy /y "C:\CommonDLLs\Utilities.dll" "R:\"" exited with…
Drew McGhie
  • 1,086
  • 1
  • 12
  • 26
2
votes
1 answer

Graceful post-build event failure

When a post-build event fails in Visual Studio 2010, you get the entire post-build batch file displayed in the error. Is there any way to hide that and show a cleaner error message instead? I found this article to suppress the original error, but I…
anjunatl
  • 1,027
  • 2
  • 11
  • 24
2
votes
0 answers

msbuild command to only publish and skip rebuilding

My requirement is to publish the project code to a folder. I have configured the below command in the Post build event. When I build the project the post build event is executing which is rebuilding the project and triggering the post build event…
2
votes
1 answer

Passing space only property from Visual Studio project build to Inno Setup compiler

In my Inno Setup script, I have a variable called BuildString defined like below. #ifndef BuildString #define BuildString " - No Config" But in my VS project post-build event, I will have some specific value passed in like "Beta"/"Admin" or even…
Scott Tan
  • 101
  • 8
2
votes
0 answers

Nuget package files reappear after post build event

I have a nuget package which is like
2
votes
1 answer

How to set a post build command to VS project from cmake?

I need to set this post-build event in cmake how to do this? I am using below command in my vs project, but I need to add it during CMake build in Cmakelists.txt xcopy /y /d "$(TargetPath)" "$(ProjectDir)$(Platform)\$(Configuration)" I tried…
kobi89
  • 152
  • 9
2
votes
2 answers

Python script at Visual C++ 2005 build step not spawning other processes

I have the following post-build step in a VC++ 2005 project that calls a Python 2.5.1 script: postbuild.py postbuild.py does: import os os.system('cd') # cd is just a test, could be anything The process never starts, and it's the same with any…
2
votes
1 answer

Azure Pipelines post-build event copy command failure

I am getting copy errors when my Azure Pipeline is doing a build on projects where a post-build event is present which copies the built .dll into a folder elsewhere in the solution. The solution in question is ASP.NET Core (more specifically, a…
2
votes
1 answer

SignTool error : The specified timestamp server either could not be reached

We have a post build event command to perform code signing. Recently getting the below errors. Post-Build cmd: $(SignToolPath)BuildScripts\SignTool\signtool.exe sign /f $(SignToolPath)BuildScripts\codesign.pfx /p $(CodeSigningPassword) /t…
saravana
  • 544
  • 1
  • 7
  • 26
2
votes
1 answer

Post build event error when building project.sln with CMake

I've been tasked with converting and building a large framework into a CMake tree and binary. Currently, the framework is built using VS 2017, creating a solution named Framework_static_vc15.sln. As this is a large project, I opted to use a…
Bendrix
  • 98
  • 12