Update DACX 150 -> 160 path (#4966)

This commit is contained in:
Aleksandr Chebotov
2022-01-28 14:18:57 +03:00
committed by GitHub
parent f54d2c7df5
commit 6865a4ccfe
2 changed files with 2 additions and 2 deletions

View File

@@ -292,7 +292,7 @@ function Get-VisualCPPComponents {
} }
function Get-DacFxVersion { function Get-DacFxVersion {
$dacfxversion = & "$env:ProgramFiles\Microsoft SQL Server\150\DAC\bin\sqlpackage.exe" /version $dacfxversion = & "$env:ProgramFiles\Microsoft SQL Server\160\DAC\bin\sqlpackage.exe" /version
return "DacFx $dacfxversion" return "DacFx $dacfxversion"
} }

View File

@@ -41,7 +41,7 @@ Describe "R" {
Describe "DACFx" { Describe "DACFx" {
It "DACFx" { It "DACFx" {
(Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*).DisplayName -Contains "Microsoft SQL Server Data-Tier Application Framework (x64)" | Should -BeTrue (Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*).DisplayName -Contains "Microsoft SQL Server Data-Tier Application Framework (x64)" | Should -BeTrue
$sqlPackagePath = 'C:\Program Files\Microsoft SQL Server\150\DAC\bin\SqlPackage.exe' $sqlPackagePath = 'C:\Program Files\Microsoft SQL Server\160\DAC\bin\SqlPackage.exe'
"${sqlPackagePath}" | Should -Exist "${sqlPackagePath}" | Should -Exist
} }