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

how to set post build event in VS to copy all satellite assemblies

Is there a generic way I could write a post-build event in VS 2017 to copy all satellite assembly folders to another directory? Each folder contains a library named [assemblyname].resources.dll I have 8 different configurations, all have the same…
adam.k
  • 324
  • 3
  • 14
1
vote
1 answer

Prevent nuget PostBuildEvent

We have a nuget package we rely on but it has a .targets file that looks like this
CuriousDeveloper
  • 849
  • 2
  • 8
  • 27
1
vote
1 answer

Prioritize Jenkins Build via Groovy Postbuild

I want to schedule a job to be at the top of the build queue in Jenkins via a Groovy Postbuild. For example, for Build X If previously the build queue looks like this: Generic Build 1 Generic Build 2 Generic build 3 Now it should look…
George Cimpoies
  • 884
  • 2
  • 14
  • 26
1
vote
1 answer

How to skip post-build event when compiling fails in Visual Studio 2013

I was wondering if there's any way in Visual Studio 2013 to skip running the post-build event in a C# project if the project fails to compile? Currently I have a C++ transpiler running as a post-build event, and the way it works right now it runs…
1
vote
0 answers

Postbuild step not working in VS2017

I have a VS2017 solution and I'm trying to copy an external DLL into the same folder as the final .exe executable (whether it will be Debug, Release or Publish) tried with: xcopy "$(ProjectDir)..\..\myDllFolder\myDll.dll" $(ProjectDir)$(OutDir) I…
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
1
vote
1 answer

.NetCore + Angular + Azure: Deployment

I created a Web Api Asp.Net Core Project in server folder and an Angular-Cli Project in client folder. In local: I launch the WebAPI with IIS Express and my angular project with ng serve --proxy-config proxy.config.json*. In my Angular App, in…
1
vote
0 answers

VS2017 Running Post Build Event when Pressing Start

I am developing an application that uses Module injection. My Modules are separate projects that compile to Dll's that the main application discovers at run time in a subdirectory called "Modules". As they are not directly connected to the Main…
Lance
  • 251
  • 5
  • 13
1
vote
1 answer

NuGet: How can I append an auto-incrememted build number to my NuGet package version ONLY when $(ConfigurationName) == Debug?

I'm trying to accomplish this using Visual Studio post-build events. What I want to happen: When I build in debug, I want to create a .nupkg like MyProject.1.0.0.xxxx-ci.nupkg, where xxxx is some auto-incrementing build number, and 1.0.0 is defined…
Shaun Z.
  • 379
  • 1
  • 3
  • 11
1
vote
1 answer

Is there a way to enable post process actions in a Jenkins multibranch pipeline job?

I have a projects that uses a multibranch pipeline to fetch all branches of a git server and then builds it. I need to do some post build actions there, but for some reason there is not post action configuration available in the builds. Neither in…
user5444681
1
vote
2 answers

including dll's not referenced in bin directory

I have a dependency folder that I use for dll's in my web application. Some are referenced in the web application, others aren't. However for the application to run I need to have all the dll's in the bin directory of the web application. But I dont…
amateur
  • 43,371
  • 65
  • 192
  • 320
1
vote
1 answer

How to execute two NPM commands sequentially copying a file as the last step?

I've altered my package.json scripts as follows (suggested by this post and this one). It works and does what's expected. ... "deploy": "ng build && echo Do not forget to copy web.config!", ... Then, I tried to substitute the echoing into actually…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
1
vote
0 answers

Visual Studio post-build event fails to run powershell script (blocked by group policy)

When I want to execute powershell script from non-admin Visual Studio 2015 Update 3 (Win 7): it seems to be blocked by the group policy settings (result from output window): 1> This program is blocked by group policy. For more information, contact…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
1
vote
1 answer

How to integrate Makeappx.exe command in postbuild event of VS2015 to create appx for the current solution?

I have created win32 .Net desktop application. I want to create appx bundle for my solution on every post-build event using makeappx.exe tool. When I am running command on post build event : MakeAppx pack /d input_directorypath /p filepath.appx ,it…
Ankush Butole
  • 151
  • 13
1
vote
1 answer

CMake: How to copy different files to build directory according to configuration and architecture

I'm generating my vcxproj and sln files for MSVC with CMake. I want to copy some dlls in build directory as POST_BUILD event which are different according whether I'm building Debug or Release configuration and whether it is x86 or x64 architecture.…
bobeff
  • 3,543
  • 3
  • 34
  • 62
1
vote
1 answer

Visual Studio PreBuildEvent powershell The string is missing the terminator: "

Had the strangest error earlier that I was genuinely confused about, so I thought I would write up a self-answer to help people out. My googlefu turned up nothing neatly, so here we are. This was my original line powershell.exe…
jcolebrand
  • 15,889
  • 12
  • 75
  • 121