Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good PowerShell MSBuild tasks?

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.

like image 208
Eric Schoonover Avatar asked Sep 16 '08 22:09

Eric Schoonover


1 Answers

One could use http://powershellmsbuild.codeplex.com/ for 3.5. It'd be nice if there was a NuGet package for it that one could leverage via NuGet package restore.

4.0 has a Windows Powershell Task Factory which you can get in the code gallery has been rolled into MSBuild Extension Pack (one of the top task libraries - 400+ Tasks & recommended in Inside MSBuild) has PowerShellTaskFactory (download the help file from the download section of this example release to have a peek).

like image 96
Ruben Bartelink Avatar answered Sep 30 '22 23:09

Ruben Bartelink