Linked Questions
15 questions linked to/from How to run Visual Studio post-build events for debug build only
8
votes
1
answer
10k
views
Visual Studio Build Events not equal condition [duplicate]
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 ...
1
vote
1
answer
573
views
C#: Copy to output directory on Debug, but NOT Release [duplicate]
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,...
0
votes
0
answers
78
views
Different Postbuilds for different Configuration [duplicate]
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 ...
18
votes
3
answers
13k
views
TFS 2010 Build Automation and post-build event
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 ...
14
votes
5
answers
12k
views
Run batch script before Debugging
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 ...
12
votes
3
answers
6k
views
Is it possible to use conditional compilation symbols in VS build events?
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 ...
10
votes
1
answer
25k
views
Visual Studio 2012: How to perform a conditional post-build event
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 ...
5
votes
2
answers
11k
views
.NET Assembly protection with .NET Reactor
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 ...
3
votes
3
answers
6k
views
"#if DEBUG" in an ASPX/ASCX page
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#" ...
3
votes
4
answers
8k
views
ILMerge - the command exited with code 255
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:$(...
3
votes
2
answers
2k
views
Visual Studio Post Build does not like my conditional
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 ...
3
votes
4
answers
2k
views
Visual Studio 2008: Use external Debug-DLL for Debug-Run and external Release-DLL for Release-Run
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 ...
0
votes
0
answers
1k
views
Multi-Line Visual Studio conditional prebuild event returns 255
I've been running a prebuild event every time I do a build. It works perfectly:
"$(MSBuildProjectDirectory)\..\..\..\Tools\SubWCRev\SubWCRev" "$(MSBuildProjectDirectory)\..\..\.." "$(...
0
votes
1
answer
1k
views
How to automatically code-sign MSI built with WiX in VS 2010?
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 ...
1
vote
1
answer
100
views
Running jake on appharbor
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 ...