troubleshooting Question

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

Avatar of LeighWardle
LeighWardleFlag for Australia asked on
C#Visual Basic.NETMicrosoft Visual Studio
5 Comments1 Solution12 ViewsLast Modified:
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?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros