Avatar of LeighWardle
LeighWardle
Flag for Australia

asked on 

Visual Studio 2013 - is it possible to make a Post-Build Event conditional?

Hi Experts,

I'm using Visual Studio 2013.

Some code I have uses Conditional Compilation to build two different applications.
I build them one at a time, changing the value of conApplicationName back and forth between "App1" and "App2".

Currently, the project is called App1, to the executable is App1.exe.
When I build App2, I manually change the App1.exe name to App2.exe.
This is messy and error-prone.

Is it possible to create a Post-Build Event that can use some conditional code to automate this process?
If not, is there another way to achieve this?

Regards,
Leigh
Visual Basic.NETC#Microsoft Visual Studio

Avatar of undefined
Last Comment
AndyAinscow

8/22/2022 - Mon