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 2010 Post-Build Event : Passing Current FlavorToBuild

I'm currently working on a re-platforming project, part of which involves a few dozen websites, all that use a common header. Several of these sites all lived on the same machine so a symbolic link was setup so they could all reference the same…
Khepri
  • 9,547
  • 5
  • 45
  • 61
3
votes
2 answers

Eazfuscator.NET works only when SolutionConfiguration=Release

I used Eazfuscator to "protect" my VS project - this means Eazfuscator added a post-build event to my project that looks like this: if /I "$(ConfigurationName)" == "Release" Eazfuscator.NET.exe [...] I'm not sure why it's checking the…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
3
votes
1 answer

With an Azure project, when managing multiple service configurations, where are the current configuration choice saved

I'm wondering about this because i'd like to find a way to create a post-build event that is different whether I'm trying to compile and run in the emulator or wheter I'm compiling and publishing to the cloud. I don't know if there is an easier way,…
3
votes
0 answers

How to make XCOPY in Visual Studio Post Build Event Command Line support both Linux and Windows?

How to make XCOPY in Visual Studio Post Build Event Command Line support both Linux and Windows? I have a post build event command line in my C# project and can works well on windows, but always failed when build in GitHub CI action, due to GitHub…
3
votes
4 answers

How to unzip from PostBuildScript in Visual Studio?

I'm trying to unzip a File in my PostBuild Event from Visual Studio, but I get an error (Command 'unzip' ended with Code 50) evertime the command gets executed. unzip -o "SourceFile.zip" -d "DestinationFolder" If I run this command from a cmd it…
Marcel B
  • 3,624
  • 2
  • 27
  • 39
3
votes
1 answer

How to check if $(ConfigurationName) contains a string

I have multi ConfigurationName: Release-2018, Release-2019, Release-2020, Debug-2018, Debug-2019, Debug-2020 How can I check if "$(ConfigurationName)" contains "Release"? I have tried: if "$(ConfigurationName)".Contains("Release") ....
Shai Nguyễn
  • 85
  • 1
  • 7
3
votes
1 answer

Is there a way to move the entire post {} build section in Jenkinsfile to the global pipeline library?

I'm relatively new to Jenkins pipelines, but having implemented already a few, I've realised I need to start using jenkins shared library before I go mad. Have already figured out how to define some repetitive steps in the library and call them with…
3
votes
2 answers

Post-build commits: good or bad?

Is it a good policy to automate source control commits following successful builds? Edit: I'm asking because I want more frequent, incremental commits between versions that make it easier to find the point where a bug was introduced than rolling…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
3
votes
1 answer

How to include folders and files in AppX for UWP application?

I have an UWP application which contains multiple UWP projects and some win32 projects(win form, wpf etc.). After deployment, I want to see my win32 binaries copied to AppX folder, how could I do that? Do I use post build or something else?
spspli
  • 3,128
  • 11
  • 48
  • 75
3
votes
1 answer

Post-Build Event Fails to Run Batch File

I recently started adding Post-Build events to my projects and today I came across an annoying issue. Post-build event command line: "$(ProjectDir)PostBuildRelease.bat" PostBuildRelease.bat - 1 CMD SET parameter=%1 CD %1 The above errors with…
Bassie
  • 9,529
  • 8
  • 68
  • 159
3
votes
1 answer

Visual Studio Post-Build xcopy dont work: error MSB3073: :"VCEnd" exited with code 4

I have following post build command: XCOPY "$(SolutionDir)*" "D:\VS\Win1\*" /EXCLUDE:"E:\exclude.txt" /Y /E /D When building I get these message: 1>------ Build started: Project: Win1, Configuration: Debug Win32 ------ 1> Can't read file:…
NoName
  • 7,940
  • 13
  • 56
  • 108
3
votes
1 answer

using mklink command inside an MSBuild PostBuildEvent in TFS

My .csproj defines the following post build event in the .csproj file that regenerates a symbolic link. This works fine inside with a manual Visual Studio build and the symlink gets regenerated without issue: del…
NewJoizey
  • 73
  • 11
3
votes
1 answer

how to get upstream project info on a downstream project - Jenkins

In Jenkins, if we use Post-Build Trigger to start another build What are ENVs available to the new build. I need to identify, parent builds Name, Build Number, Last Successful Artifacts' URL etc., In simple words, how to get upstream project info…
Shan
  • 2,141
  • 2
  • 17
  • 32
3
votes
1 answer

How to make PrettyBin not copy PDB files to lib folder in order to show Exception line numbers?

Using this answer I installed PrettyBin to my VS2013 C# project. It really is a easy one click solution if you want to copy all referenced DLLs to a lib subfolder in the bin folder. Recently I noticed that thrown Exceptions do not show line numbers…
mandarin
  • 1,316
  • 1
  • 15
  • 27
3
votes
1 answer

PreBuildEvent and PostBuildEvent on Visual Studio 2015 Tools for Apache Cordova

Does somebody know if there is a way to use PreBuildEvent and PostBuildEvent on the new Visual Studio 2015 Tools for Apache Cordova? I tried this post, but it didn't work: Setting post-build event commands?