Jan David Narkiewicz (Developer)

Saturday, December 26, 2020

PowerShell: Unit Test Functions and Accessing the Invoking Code's Line Number

›
In a previous post it was shown that the methods of PowerShell classes cannot determine the invoking line number and filename using $MyInvoc...
Friday, December 25, 2020

Git changing the Message associated with a Commit

›
Before pushing code, many Git repositories require that the Git commit message contain an ID number for issue associated with the commit. Fo...
Saturday, December 19, 2020

PowerShell: Assigning the No-Parameter-Specified case to a Parameter Set

›
  PowerShell parameter sets allow cmdlet parameters to be grouped so that only certain parameters can be used in combination (see PowerShell...
Sunday, November 22, 2020

PowerShell: $Myinvocation.ScriptLineNumber behaves incorrectly with Class Methods

›
The PowerShell automatic variable, $Myinvocation, contains a ScriptLineNumber property. This property corresponds to the InvocationInfo clas...
3 comments:
Friday, October 16, 2020

PowerShell: Inadvertently Returning Multiple Values from a Function

›
During a project ( warning: do not write code while tired ), I encountered a PowerShell function mysteriously returning three values. Most s...
1 comment:
Sunday, September 20, 2020

Azure: Determining the Parameters to Change in Azure Resource Manager (ARM) Templates

›
Overview In the post " Azure: Azure Resource Manager (ARM) templates for creating Virtual Machines for Standard Window's SKU's ...
Saturday, September 19, 2020

Visual Studio Code: Comparing Text Files

›
Visual Studio Code has built in, albeit unintuitively, file comparison. To diff two files, from Explorer right click on the first file to co...
‹
›
Home
View web version

About Me

Jan Narkiewicz
View my complete profile
Powered by Blogger.