Powershell MSBuild task

Topics: Developer Forum
Sep 9, 2006 at 2:33 PM
I recently (uh, last night, actually) wrote an MSBuild task that hosts the Posh runtime and allows Powershell scripts to be embedded in the MSBuild project file. This makes it possible to inject a little more flexibility into an MSBuild-based build process (for example Team Build) beyond that which is allowed by MSBuild itself without having to write custom tasks for everything.

Would there be an interest in having that task live in this project? From the project page it is rather unclear what kinds of contributions you are interested in from the community beyond feature requests.

Sep 11, 2006 at 1:36 AM
The basic idea with PSCX is to extend PoSH with cmdlets and providers that we would have liked to have seen ship in v1.0. I am interested in your MSBuild custom task since we use MSBuild a lot. However, I think your code would probably be better put in an MSBUILD oriented project. Say something like http://msbuildtasks.com/ or http://www.codeplex.com/Wiki/View.aspx?ProjectName=Sedodream. Let us know where you put this since like I said, I'm interested in it.
Sep 12, 2006 at 8:24 PM
Yeah, I guess you're right it would be more home in an MSBuild project. I'll look around and see what I can find.

For now, it lives in a Subversion repository here: http://ankhsvn.com/svn/powershell/trunk/PowershellMSBuildTask/

One of the supporting files for the test suite has some (boring) examples of usage: http://ankhsvn.com/svn/powershell/trunk/PowershellMSBuildTask/PowershellMSBuildTaskTest/BuildFile.proj

I will probably blog about it tomorrow.