Update Invoke-D365InstallSqlPackage to install latest version of SQLPackage #817
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates the default version of SqlPackage that d365fo.tools installs to 162.2.111.2 (the first .NET 8 version).
In addition, it replaces the
-SkipExtractFromPage
parameter and the corresponding web scraping logic with the-Latest
parameter and the evergreen link https://aka.ms/sqlpackage-windowsNote that unlike the behavior from when the web scraping logic was still working, the latest version of SqlPackage is NOT installed by default. Instead, the fixed version 162.2.111.2 is installed (which may be updated to later versions in the future). Reasons for this change in behavior are discussed in #747.
The changes also include
Invoke-Process
a return value with the standard and error outputInvoke-D365InstallSqlPackage
andInvoke-SqlPackage
make use of that output to provide information on the SqlPackage version