Trick: comment commands of Pre/Post-Build in FlashDevelop and Visual Studio

Sometimes I use python or ruby script as Pre/Post-Build step configured in settings of a project in IDE. There my be situation when such extra steps are not needed. We can provide one more configuration without those Pre/Post-Build steps but it’s much faster just to comment the commands in some way, so, to enable them later.

In MS Visual Studio I added rem as old-school .bat files comment

  • rem command arg1 arg2

and true in case of Flash Develop IDE

  • true command arg1 arg2

It looks like VS just ignore or skip the commands like first one. Unfortunately, such trick doesn’t work in case of FalshDevelop. So, I use more universal method. The commend in second example would be called by IDE. It does nothing and return correct exit code, so IDE continues regular build scenario.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: