Monday, October 03, 2011

PS'ing your MSBuild with the InvokePowerShellCommand Community TFS Build Extension

Community TFS Build Extensions - How to integrate the InvokePowerShellCommand build activity

"The InvokePowerShellCommand activity can be used to run the PowerShell commands or script files within a build without using then generic InvokeProcess activity to run the PowerShell interpreter. In this example we aim to show the basic steps that are required to get the activity integrated into a build.

Before you can make use of any of the TFS 2010 community build activities you have to make sure they are available for the build system and on your development PC. Instructions for this process can be found in the ALM Rangers build guide or in the StyleCop page of this wiki. This page assumes the InvokePowerShellCommand activity is available in the developers build process workflow toolbox.

Using the activity with an inline script

...

Using the activity with an .PS1 file from source control

...

image..."

This looks like a cool way of extending, customizing, etc, your Build process. I mean, it's PowerShell! :)

(via But it works on my PC! - Documentation for the PowerShell activity in the TFS Community Build Extensions published )

No comments:

Post a Comment

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...