change set version script to use correct path

rather than directory relative to the working directory use the path relative to the tools folder.
This commit is contained in:
Eliot Jones 2020-02-27 13:29:15 +00:00
parent f2d94413dc
commit 25b6f1d46d

View File

@ -3,7 +3,9 @@ param (
[string]$version
)
$projs = Get-ChildItem "../src" -Recurse | Where-Object { $_.extension -eq ".csproj" -and $_.name.IndexOf("Tests") -lt 0 }
$root = (Split-Path -parent $PSCommandPath)
$projs = Get-ChildItem "$root/../src" -Recurse | Where-Object { $_.extension -eq ".csproj" -and $_.name.IndexOf("Tests") -lt 0 }
$projs | ForEach-Object {
$xml = New-Object XML
$xml.Load($_.FullName)