Tag:powershell
All the articles with the tag "powershell".
PowerShell $PSScriptRoot vs dot-sourcing
Bug in PowerShell 2 where dot-sourcing overwrites $PSScriptRoot; workaround using a function instead of a variable.
Read more…Useful git hooks - Part 3
Completion of the git hooks suite with functional tests using PoshUnit and UI Automation PowerShell Extensions.
Read more…PowerShell script best practices
Best practices for PowerShell scripts: error handling preamble, strict mode, PSScriptRoot, and readability rules.
Read more…WTF Method overloads resolution in PowerShell
PowerShell resolves .NET method overloads differently from C#, causing unexpected method calls with bool arguments.
Read more…Indent styles holy wars
Discussion of Allman vs K&R brace styles across C#, JavaScript, CSS, and PowerShell.
Read more…PoshUnit
Announcement of PoshUnit, a new portable PowerShell unit testing framework inspired by NUnit.
Read more…PowerShell 2 and .NET Framework 4
How to configure PowerShell 2 to use .NET Framework 4 CLR via registry or config files.
Read more…PowerShell unit testing
Comparison of PowerShell unit testing frameworks: Pester, PsUnit, and PsTest.
Read more…Useful git hooks - Part 2
Adds a commit-msg hook that enforces TFS work item ID prefixes on all commit messages.
Read more…PowerShell Set-PSBreakpoint bug in PowerShell 3_
Bug report: Set-PSBreakpoint breakpoints are not hit when the script runs in a new PowerShell 3 process.
Read more…