syntax notation

This commit is contained in:
Leonid Lapshin
2020-09-07 10:27:55 +03:00
parent e438bd4302
commit 2e6ca0ca56
5 changed files with 12 additions and 12 deletions

View File

@@ -103,15 +103,15 @@ function Get-VSExtensionVersion
Param
(
[Parameter(Mandatory=$true)]
[string] $packageName
[string] $PackageName
)
$state = Get-Content -Path (Join-Path (Get-VisualStudioInstancePath) '\state.packages.json') | ConvertFrom-Json
$packageVersion = ($state.packages | Where-Object { $_.id -eq $packageName }).version
$packageVersion = ($state.packages | Where-Object { $_.id -eq $PackageName }).version
if (-not $packageVersion)
{
Write-Host "installed package $packageName for Visual Studio 2019 was not found"
Write-Host "installed package $PackageName for Visual Studio 2019 was not found"
exit 1
}