Browse by Tags

Related Posts

  • PowerShell: how to unit test your cmdlet

    If you miss VS, intellisense, TD.NET , etc., you might want to try extending PowerShell with custom cmdlets, which are .NET classes deriving from Cmdlet. They allow you to extend PowerShell while still programming in your favorite language. Read Pablo Galiano's post for a step-by-step introduction...
    Posted to eXtensible Mind Lounge (Weblog) by Daniel Cazzulino on 10-26-2006, 12:00 AM
    Filed under: .NET, All Technology, PowerShell
  • PowerShell: vastly improved tab expansion/completion (or do you still miss VS intellisense?)

    I'm an intellisense-addict. I hate doing work that my computer can do for me, and typing long namespace and class names certainly fits that category. [If you know all about PowerShell and just want to try it really quick, go get the straight dope now ;)] Out of the box, PowerShell (PS) does fairly...
    Posted to eXtensible Mind Lounge (Weblog) by Daniel Cazzulino on 10-26-2006, 12:00 AM
    Filed under: .NET, All Technology, PowerShell
  • Unit testing Cmdlets for PowerShell

    I don't use PowerShell myself, but this blog post caught my eye. If you miss VS, intellisense, TD.NET , etc., you might want to try extending PowerShell with custom cmdlets, which are .NET classes deriving from Cmdlet. They allow you to extend PowerShell while still programming in your favorite language...
    Posted to Mike Diehl's WebLog (Weblog) by MikeD on 10-26-2006, 12:00 AM
    Filed under: .NET, Visual Studio, TDD, PowerShell
  • PowerShell needs an XML namespace before it's too late

    PowerShell exposes some pretty cool features via XML files, such as custom formatting and type extensions . The only problem I see right now is that those XML files have no namespace whatesoever. That may sound useless to you, but it's the very reason why you don't get ANY intellisense/validation...
    Posted to eXtensible Mind Lounge (Weblog) by Daniel Cazzulino on 11-03-2006, 12:00 AM
    Filed under: .NET, All Technology, PowerShell
  • PowerShell and debugging

    I still did not found a good debugging environment for my PowerShell development. The thing I use most is a command I found in this blog post , part of a great blog post series on PowerShell debugging on the Windows PowerShell blog by the PowerShell team. The command allows you to set a breakpoint at...
    Posted to Serge van den Oever [Macaw] (Weblog) by svdoever on 12-29-2006, 12:00 AM
    Filed under: .NET, PowerShell
  • PowerShell: calculating a relative path

    Sometimes you need a simple thing like calculating the relative path of a file given its full path and a base path. For example you have a file c:\a\b\c\d\e.doc and a base path c:\a\b\c, the relative path is now d\e.doc. I use the following PowerShell function to do this, actually using only .Net framework...
    Posted to Serge van den Oever [Macaw] (Weblog) by svdoever on 12-29-2006, 12:00 AM
    Filed under: .NET, PowerShell
  • PowerShell pitfalls: reading text from file using get-content

    I had a really strange effect in PowerShell that puzzled me for hours! I have the following script: $a = @' One Two '@ $a $p = [regex]"One" $p.Replace($a, "OneReplaced") $b = get-content -path templ.txt $b $q = [regex]"One" $q.Replace($b, "OneReplaced") And a file templ.txt containing the following text...
    Posted to Serge van den Oever [Macaw] (Weblog) by svdoever on 12-31-2006, 12:00 AM
    Filed under: .NET, PowerShell
  • Retrieving your Outlook appointments for a given date range

    Before we dive into the code sample lets take a quick look at what it means for an appointment to fall into a given date range. When you compare an appointment with a given date range (or any two time intervals) there are the 6 possible outcomes displayed in the diagram above. Usually as a first attempt...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 03-21-2007, 12:00 AM
    Filed under: .NET, Code, Powershell, Outlook
  • Powershell script to find strings and highlight them in the output

    After reading about Brad 's find script I starting thinking about how cool it would be if I could highlight the search pattern in the output. So I wrote my own custom Find-String script to highlight the results. Find-String.ps1 # Find-String.ps1 # Wrapper around dir | select-string which will highlight...
    Posted to Wes' Puzzling Blog (Weblog) by puzzlehacker on 03-23-2007, 12:00 AM
    Filed under: .NET, Code, Powershell
  • Factories @ Macaw - the DotNed presentation of april 26, 2007

    On april 26, 2007 I gave a presentation at the Macaw headquarters in Schiphol-Rijk, The Netherlands on what we are doing with Software Factories at Macaw. I promised the audience to publish some links to tools and information mentioned in the presentation. I can't upload the presentation itself because...
    Posted to Serge van den Oever [Macaw] (Weblog) by svdoever on 05-04-2007, 12:00 AM
    Filed under: .NET, Visual Studio, PowerShell, SoftwareFactories
Page 1 of 5 (47 items) 1 2 3 4 5 Next >