Closed zejji closed 3 years ago
@zejji
I upgraded the way the code works so that it covers more locations. I have now republished both the Azure DevOps extension where you changed the code and the source PowerShell gallery module (where your code changes should have gone!).
See https://marketplace.visualstudio.com/items?itemName=DrJohnExtensions.PublishDacPac https://www.powershellgallery.com/packages/PublishDacPac/
@DrJohnT - thank you, much appreciated!
Confirmed working correctly in our pipeline 👍
For example, with a freshly installed installation of SQL Server 2017 on Windows Server 2019 using Chocolately, the correct location for SqlPackage.exe is:
This path (or the equivalent path for any other version of SQL Server - see here) is not searched as part of
Get-SqlPackagePath.ps1
.The workaround appears to be to specify a 'CustomSqlPackageInstallLocation' environment variable, but the script would be more user-friendly if it searched all the default SQL Server install locations.