param( [Parameter(Mandatory = $true)] [string]$TemplateDir, [Parameter(Mandatory = $true)] [string]$AssembliesDir, [Parameter(Mandatory = $true)] [string]$OutputRoot, [Parameter(Mandatory = $true)] [string]$PackageName, [Parameter(Mandatory = $true)] [string]$PackageVersion ) $ErrorActionPreference = 'Stop' function Normalize-FullPath { param([string]$Path) return [System.IO.Path]::GetFullPath($Path) } function Normalize-TextFileLineEndings { param([string]$Path) $content = [System.IO.File]::ReadAllText($Path) $content = [regex]::Replace($content, '(?