﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>alberto commented on On PSake</title><description>Re Nant &amp; MSBuild, you are also using psake and msbuild right now, I don't see a difference. It's now like you had to create another xml file to configure msbuild.
  
  
  
</description><link>http://ayende.com/4156/on-psake#comment27</link><guid>http://ayende.com/4156/on-psake#comment27</guid><pubDate>Fri, 11 Sep 2009 12:03:33 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Okay, figured it out, it depends where you put it.
  
When I put it in a task, it didn't work
</description><link>http://ayende.com/4156/on-psake#comment26</link><guid>http://ayende.com/4156/on-psake#comment26</guid><pubDate>Tue, 01 Sep 2009 12:07:22 GMT</pubDate></item><item><title>Chris Bilson commented on On PSake</title><description>Maybe you have an older version of psake? This works with the latest psake: 
[http://gist.github.com/179067](http://gist.github.com/179067)</description><link>http://ayende.com/4156/on-psake#comment25</link><guid>http://ayende.com/4156/on-psake#comment25</guid><pubDate>Tue, 01 Sep 2009 11:57:23 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Chris,
  
Just tried include, and it didn't work,  I guess it isn't bringing it to the local scope or something like that.
</description><link>http://ayende.com/4156/on-psake#comment24</link><guid>http://ayende.com/4156/on-psake#comment24</guid><pubDate>Tue, 01 Sep 2009 09:15:45 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Lyndsay,
  
You said it, you are using MSBuild &amp; Nant to build it.
  
</description><link>http://ayende.com/4156/on-psake#comment23</link><guid>http://ayende.com/4156/on-psake#comment23</guid><pubDate>Mon, 31 Aug 2009 21:13:34 GMT</pubDate></item><item><title>Lyndsay commented on On PSake</title><description>What problem do you have building WPF apps with NAnt? I'm using VS2008, MSBuild and NAnt to build a WPF ClickOnce app quite successfully at the moment. Perhaps I'm missing something.
</description><link>http://ayende.com/4156/on-psake#comment22</link><guid>http://ayende.com/4156/on-psake#comment22</guid><pubDate>Mon, 31 Aug 2009 21:03:49 GMT</pubDate></item><item><title>Chris Bilson commented on On PSake</title><description>You can just:
  
  
include psake_ext.ps1
  
  
But then you need to put all your functions in global:, which kind of sucks. See 
[groups.google.com/.../7fc875b5dca3502b7](http://groups.google.com/group/psake-users/browse_thread/thread/7fc875b5dca3502b7)  
  
Not that there are any advantages to include, I guess, other than it seems a little more readable.
</description><link>http://ayende.com/4156/on-psake#comment21</link><guid>http://ayende.com/4156/on-psake#comment21</guid><pubDate>Mon, 31 Aug 2009 12:20:57 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Chris,
  
I don't know how to include files :-)
  
And my ext file is really lousy:
  
[github.com/.../psake_ext.ps1](http://github.com/ayende/rhino-mocks/blob/5719a4ca467856f324d6d2c4c9526ea42edc6cb2/psake_ext.ps1)</description><link>http://ayende.com/4156/on-psake#comment20</link><guid>http://ayende.com/4156/on-psake#comment20</guid><pubDate>Mon, 31 Aug 2009 12:11:24 GMT</pubDate></item><item><title>Chris Bilson commented on On PSake</title><description>You can still build using the mono tools on windows, and guess what: mono can even use assemblies _not_ built using the mono tools. Even if you cared about building Rhino Tools for mono, whether or not to use powershell in your build is the least of your concerns.
  
  
Any idea when/if you are going to put this in Rhino-Tools? I recently started using psake and would like to take a look at your psake_ext.ps1. How come you dot-sourced it and didn't just "include" it? 
</description><link>http://ayende.com/4156/on-psake#comment19</link><guid>http://ayende.com/4156/on-psake#comment19</guid><pubDate>Mon, 31 Aug 2009 12:03:59 GMT</pubDate></item><item><title>Steve Wagner commented on On PSake</title><description>Hi Ayende, may you found this post also interesting:
  
  
[www.lanwin.de/.../a-powershell-make-clone-poshmake](http://www.lanwin.de/2009/08/31/a-powershell-make-clone-poshmake/)  
</description><link>http://ayende.com/4156/on-psake#comment18</link><guid>http://ayende.com/4156/on-psake#comment18</guid><pubDate>Mon, 31 Aug 2009 07:59:55 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>If I need to write OO code to handle my build, I already lost
</description><link>http://ayende.com/4156/on-psake#comment17</link><guid>http://ayende.com/4156/on-psake#comment17</guid><pubDate>Mon, 31 Aug 2009 07:39:35 GMT</pubDate></item><item><title>Peter commented on On PSake</title><description>Also Sean, PowerShell is a great dynamic language, and you're only going to miss Ruby's OO-ness. If you're writing scripts, I'd say all the little touches done for PowerShell make it superior to Ruby.
  
  
As for the OO-ness, PowerShell has the ability in PowerShell V1 to add members and methods to an object at runtime via the add-member cmdlet, but it's verbose and all an object's members are public, so I acknowledge this isn't ideal. I've abused the add-member cmdlet here: 
[www.pseale.com/.../...terScriptingGamesEvent5.aspx](http://www.pseale.com/blog/2008WinterScriptingGamesEvent5.aspx)  
  
PowerShell V2 lets you write C# classes inline in your PowerShell scripts that can be compiled and instantiated like any other .NET object. I haven't used this feature so I won't vouch for it.
</description><link>http://ayende.com/4156/on-psake#comment16</link><guid>http://ayende.com/4156/on-psake#comment16</guid><pubDate>Mon, 31 Aug 2009 03:11:06 GMT</pubDate></item><item><title>Peter commented on On PSake</title><description>I like psake and have used it, but I already had some "owie" moments where psake did something unexpected. The next time I need a build script, I'll just do raw PowerShell--the only thing I'm losing is the task dependency management, which isn't a loss to me--tasks can be reformulated as function calls (or maybe cmdlets, I haven't thought this through much). Instead of making tasks dependent on each other, you'd just call the function.
  
  
I haven't totally thought through this, but it seems like dependency management for tasks isn't necessary for build scripts.
</description><link>http://ayende.com/4156/on-psake#comment15</link><guid>http://ayende.com/4156/on-psake#comment15</guid><pubDate>Mon, 31 Aug 2009 03:01:08 GMT</pubDate></item><item><title>Jeffrey Snover commented on On PSake</title><description>Wow - that looks really nice. 
  
That looks like it would be very easy to maintain/extend.
  
  
Enjoy!
  
  
Jeffrey Snover [MSFT]
  
Distinguished Engineer
  
Visit the Windows PowerShell Team blog at:    
[http://blogs.msdn.com/PowerShell](http://blogs.msdn.com/PowerShell)  
Visit the Windows PowerShell ScriptCenter at:  
[www.microsoft.com/.../msh.mspx](http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx)  
</description><link>http://ayende.com/4156/on-psake#comment14</link><guid>http://ayende.com/4156/on-psake#comment14</guid><pubDate>Mon, 31 Aug 2009 01:29:29 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Stuart,
  
No idea, I apply YAGNI here.
  
There is small enough infrastructure that I don't really worry about this
</description><link>http://ayende.com/4156/on-psake#comment13</link><guid>http://ayende.com/4156/on-psake#comment13</guid><pubDate>Sun, 30 Aug 2009 23:58:59 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Mike,
  
I have absolutely no idea, it wasn't necessary so far
</description><link>http://ayende.com/4156/on-psake#comment12</link><guid>http://ayende.com/4156/on-psake#comment12</guid><pubDate>Sun, 30 Aug 2009 23:57:47 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Sean,
  
PowerSheel _is_ a programing language
</description><link>http://ayende.com/4156/on-psake#comment11</link><guid>http://ayende.com/4156/on-psake#comment11</guid><pubDate>Sun, 30 Aug 2009 23:56:45 GMT</pubDate></item><item><title>Stuart commented on On PSake</title><description>@Ayende If/when compiling on Mono becomes a priority for you and you go to take care of it, what will you do? Do you reckon it will be easy enough to add Mono as a psake target, or do you expect you might have to change build systems?
  
  
(I have no interest in powershell, but after a cursory look at psake.ps1 it seems to me that adding Mono support might not be too difficult.)
  
</description><link>http://ayende.com/4156/on-psake#comment10</link><guid>http://ayende.com/4156/on-psake#comment10</guid><pubDate>Sun, 30 Aug 2009 22:05:37 GMT</pubDate></item><item><title>Tobin Harris commented on On PSake</title><description>I'm currently having some success with IronRuby + Rake (click my link to see recent blog post about that). 
  
  
I like the fact that you easily can write Rake tasks that manipulate your own .NET business or utility objects.  The downside of IronRuby is the extra dependency and it's still a touch slow.
  
  
  
  
  
</description><link>http://ayende.com/4156/on-psake#comment9</link><guid>http://ayende.com/4156/on-psake#comment9</guid><pubDate>Sun, 30 Aug 2009 18:30:22 GMT</pubDate></item><item><title>Mike Brown commented on On PSake</title><description>I've been intrigued by powershell for some time now. From what I read ,the pipe structure is very powerful because you're piping .NET objects instead of just strings.
  
  
I'd imagine that the PSake tasks are defined as commandlets allowing you to define new tasks in C#.
</description><link>http://ayende.com/4156/on-psake#comment8</link><guid>http://ayende.com/4156/on-psake#comment8</guid><pubDate>Sun, 30 Aug 2009 18:06:31 GMT</pubDate></item><item><title>Sean Scally commented on On PSake</title><description>I think I still prefer the rake solution because it includes everything you need. When you need shell constructs, they're available in rake. When you need programming constructs, they're also there right in the buildfile, instead of having to use one language to sew up a patchwork quilt of shell scripts in a 2nd language and 3rd party tools in yet a 3rd language.
</description><link>http://ayende.com/4156/on-psake#comment7</link><guid>http://ayende.com/4156/on-psake#comment7</guid><pubDate>Sun, 30 Aug 2009 17:55:29 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>Jeremy,
  
Probably not that much longer, but using the shell is much easier than a programming language. Most of the tools already have command line interface
</description><link>http://ayende.com/4156/on-psake#comment6</link><guid>http://ayende.com/4156/on-psake#comment6</guid><pubDate>Sun, 30 Aug 2009 16:07:39 GMT</pubDate></item><item><title>Ayende Rahien commented on On PSake</title><description>@Orb,
  
Compiling on Mono is not a priority for me.
  
When it does, I'll take care of it.
  
  
@John,
  
Psake is actually smaller &amp; easier, I find.
</description><link>http://ayende.com/4156/on-psake#comment5</link><guid>http://ayende.com/4156/on-psake#comment5</guid><pubDate>Sun, 30 Aug 2009 16:05:01 GMT</pubDate></item><item><title>Jeremy B commented on On PSake</title><description>Out of curiousity -- how many lines would that have been in C#?
  
  
Going through reworking our current build system at work, I keep wondering if it wouldn't be more straightforward to write the majority of the build in C# and have a very small script that built that project and ran it...
  
  
Added benefit is people don't have to grok a different language like Ruby, msbuild, nant, powershell to use it.
</description><link>http://ayende.com/4156/on-psake#comment4</link><guid>http://ayende.com/4156/on-psake#comment4</guid><pubDate>Sun, 30 Aug 2009 15:46:17 GMT</pubDate></item><item><title>John Teague commented on On PSake</title><description>you can  use ruby + rake without requiring Ruby to be installed.  AllInOneRuby packages Ruby and your Gems into an executable.  Ruby+Rake is about 3mb.
</description><link>http://ayende.com/4156/on-psake#comment3</link><guid>http://ayende.com/4156/on-psake#comment3</guid><pubDate>Sun, 30 Aug 2009 15:20:35 GMT</pubDate></item><item><title>beefarino commented on On PSake</title><description>@Orb:
  
  
There is a cross-platform powershell implementation based on the 1.0 release available:
  
  
[igorshare.wordpress.com/.../pash-cross-platform...](http://igorshare.wordpress.com/2008/04/06/pash-cross-platform-powershell-is-out-in-the-wild-announcement/)  
  
I have not used it (caveat emptor); however it is reported to support the entire 1.0 language and syntax set.  The items that are not supported are the windoze-specific items, like WMI.
</description><link>http://ayende.com/4156/on-psake#comment2</link><guid>http://ayende.com/4156/on-psake#comment2</guid><pubDate>Sun, 30 Aug 2009 13:33:08 GMT</pubDate></item><item><title>Orb commented on On PSake</title><description>And there goes your ability to build on mono.  Of course, if they'd fix xbuild so that it actully worked...
</description><link>http://ayende.com/4156/on-psake#comment1</link><guid>http://ayende.com/4156/on-psake#comment1</guid><pubDate>Sun, 30 Aug 2009 13:22:44 GMT</pubDate></item></channel></rss>