Watch-WebProject.ps1
<#
.SYNOPSIS Monitor project files for changes. .PARAMETER ConfigFile The absolute or relative path of the config file. .PARAMETER Level #> function Watch-WebProject( [Parameter(Mandatory)][Alias('c', 'config')][String]$ConfigFile, [Parameter()][Alias('l', 'log')][ValidatePattern('(?i)(^Debug$|^Info$|^Warn$|^Error$|\d+)')][string]$Level) { $name0 = ''; $value0 = ''; if ($ConfigFile) { $name0 = '-ConfigFile'; $value0 = $ConfigFile.ToString(); } $name1 = ''; $value1 = ''; if ($Level) { $name1 = '-Level'; $value1 = $Level.ToString(); } $exe = "$PSScriptRoot\bin\Acklann.Traneleon.CLI.dll"; return (&dotnet $exe watch $name0 $value0 $name1 $value1); } |