Linked Questions

8 votes
1 answer
10k views

Is there a way to have a not equal condition in build events ? Like this: if $(ConfigurationName) != Debug xcopy ... Note that this is build event (batch-like syntax), not MSBuild task (which indeed ...
EdRbt's user avatar
  • 349
1 vote
1 answer
573 views

When building a C# project, is there a way to copy files to the output directory only with the Debug configuration, and not with the Release configuration? Example problem I'm facing: I have two files,...
Josh Brunton's user avatar
0 votes
0 answers
78 views

Possible Duplicate: How to run Visual Studio post-build events for debug build only I want to execute a postbuild command when compiling my project as Release. If Debug is set, these Postbuilds ...
0xDEADBEEF's user avatar
  • 3,431
18 votes
3 answers
13k views

In the project I've inherited, the original developer used a number of post-build events in his Visual Studio projects to copy around DLL's and stuff when building inside VS. This is causing some ...
marc_s's user avatar
  • 760k
14 votes
5 answers
12k views

I want to run a batch script every time before starting program for debugging. For the build events, such functionality is realized using pre-build event, post-build event. For actual debugging, I ...
Tilak's user avatar
  • 30.8k
12 votes
3 answers
6k views

Say for instance I have a Visual Studio project with a configuration called "MyConfig" and I have the compilation symbol MY_CONFIG_SYMBOL defined. Is there a macro or command to see if ...
Mike Webb's user avatar
  • 9,043
10 votes
1 answer
25k views

How do I perform a conditional post-build event? Specifically, I would like to only execute the post-build event command line for the debug release but not for the release build. I did not see any ...
Sarah Weinberger's user avatar
5 votes
2 answers
11k views

I'm testing out Eziriz .NET Reactor to protect a software, developed using Visual Studio 2010 C# WPF. I am confused when the .NET Reactor ask to which assembly to protect. I though it supposed to ...
KMC's user avatar
  • 20.1k
3 votes
3 answers
6k views

I want to be able to point to one of 2 assemblies based on what mode (DEBUG or RELEASE) I have selected in my VS2005 IDE. Something like this (which does not work): <%@ Control Language="C#" ...
Keith Barrows's user avatar
3 votes
4 answers
8k views

I'm trying to embed DLLs in single executable using ILMerge. I added this command line in build events > post build event command line: C:\Program Files\Microsoft\ILMerge\ILMerge.exe /out:$(...
Jack's user avatar
  • 16.7k
3 votes
2 answers
2k views

I have a post build conditional that looks like this: if $(ConfigurationName)==Release ( echo Update $(TargetName) to be non conflicting "$(SolutionDir)ILMerge\RummageTypeRenamer.exe" -f ...
Vaccano's user avatar
  • 83.3k
3 votes
4 answers
2k views

Short version: If running a program from VS2008 in Release mode, I want it to use pathA\externaldll.dll. If running a program from VS2008 in Debug mode, I want it to use pathB\externaldll.dll Long ...
B3ret's user avatar
  • 638
0 votes
0 answers
1k views

I've been running a prebuild event every time I do a build. It works perfectly: "$(MSBuildProjectDirectory)\..\..\..\Tools\SubWCRev\SubWCRev" "$(MSBuildProjectDirectory)\..\..\.." "$(...
Stealth Rabbi's user avatar
0 votes
1 answer
1k views

I'm building my MSI project using Visual Studio 2010 and WiX. I'd like to automatically sign the release build upon successful compilation. (Note, not the Debug build though, to save on compilation ...
c00000fd's user avatar
  • 22.8k
1 vote
1 answer
100 views

I have a post build task that I run on my MVC 3 project, 'jake build', that combines a bunch of coffee script files and runs some tests using Phantom.js. I don't expect appharbor to run this when I ...
Austin Fatheree's user avatar