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.
-
Useful git hooks - Part 3
Completion of the git hooks suite with functional tests using PoshUnit and UI Automation PowerShell Extensions.
-
PowerShell script best practices
Best practices for PowerShell scripts: error handling preamble, strict mode, PSScriptRoot, and readability rules.
-
WTF Method overloads resolution in PowerShell
PowerShell resolves .NET method overloads differently from C#, causing unexpected method calls with bool arguments.
-
Indent styles holy wars
Discussion of Allman vs K&R brace styles across C#, JavaScript, CSS, and PowerShell.
-
PoshUnit
Announcement of PoshUnit, a new portable PowerShell unit testing framework inspired by NUnit.
-
PowerShell 2 and .NET Framework 4
How to configure PowerShell 2 to use .NET Framework 4 CLR via registry or config files.
-
PowerShell unit testing
Comparison of PowerShell unit testing frameworks: Pester, PsUnit, and PsTest.
-
Useful git hooks - Part 2
Adds a commit-msg hook that enforces TFS work item ID prefixes on all commit messages.
-
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.