views:

1267

answers:

4

Anyone know of any good MSBuild tasks that will execute a PowerShell script and pass it different parameters?

I was able to find B# .NET Blog: Invoking PowerShell scripts from MSBuild, but I'm hoping for something that is a little more polished.

If I can't find anything I will of course just go ahead and polish my own using that blog post as a starter.

+2  A: 

Maybe this approach?

It's a little more fleshed out and comes with tests ;)

The SVN Repo is here

+3  A: 

You might also want to look at Psake - a PowerShell based build environment.

Steven Murawski
A: 

a little late, but there's also this: http://bartdesmet.net/blogs/bart/archive/2008/02/16/invoking-powershell-scripts-from-msbuild.aspx

Isnt that what the asker is referring to? Asker, can you fix your link unless that's not what you mean?
Ruben Bartelink
+1  A: 

One could use http://powershellmsbuild.codeplex.com/ for 3.5

4.0 has a Windows Powershell Task Factory which you can get in the code gallery

Ruben Bartelink