Skip to content

Fix MSIX packaging to determine if a Preview release by inspecting the semantic version string - #11991

Merged
Andrew (anmenaga) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:msix-lts
Mar 5, 2020
Merged

Andrew (anmenaga) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:msix-lts

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Mar 2, 2020 •

Copy link
Copy Markdown
Member

PR Summary

The non-Preview release still gets a Product Name of "PowerShell Preview" because the code was looking to see if the $productname contains a -. Since the version is added after the product name, it will always have a - such as powershell-7.0.0. The fix is to only look for the - within the semantic version string like 7.0.0-rc.1.

PR Checklist

@@ -3049,7 +3049,7 @@ function New-MSIXPackage

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Steve Lee (@SteveL-MSFT), your last commit had 1 failures in PowerShell-CI-static-analysis
Verify Markdown Links.Verify links in /home/vsts/work/1/s/ADOPTERS.md.https://shell.azure.com/ should work

Failed to complete request to "https://shell.azure.com/". Response status code does not indicate success: 500 (Internal Server Error).
at <ScriptBlock>, /home/vsts/work/1/s/test/common/markdown/markdown-link.tests.ps1: line 119
119:                                     throw "Failed to complete request to `"$url`". $($_.Exception.Message)"

Comment thread tools/packaging/packaging.psm1 Resolved
@adityapatwardhan

Copy link
Copy Markdown
Member

PoshChan-Bot (@PoshChan) please retry static, macos

@PoshChan

Copy link
Copy Markdown
Collaborator

Aditya Patwardhan (@adityapatwardhan), successfully started retry of PowerShell-CI-static-analysis, PowerShell-CI-macOS

Comment thread tools/packaging/packaging.psm1 Resolved
@SteveL-MSFT

Copy link
Copy Markdown
Member Author

PoshChan-Bot (@PoshChan) retry static

@PoshChan

Copy link
Copy Markdown
Collaborator

Steve Lee (@SteveL-MSFT), successfully started retry of PowerShell-CI-static-analysis

Comment thread tools/packaging/packaging.psm1 Resolved
@SteveL-MSFT

Copy link
Copy Markdown
Member Author

PoshChan-Bot (@PoshChan) retry static

@PoshChan

Copy link
Copy Markdown
Collaborator

Steve Lee (@SteveL-MSFT), successfully started retry of PowerShell-CI-static-analysis

@anmenaga
Andrew (anmenaga) merged commit 268afbd into PowerShell:master Mar 5, 2020
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 24, 2020
@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

@ghost

Copy link
Copy Markdown

🎉v7.0.4 has been released which incorporates this pull request.:tada:

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.0.x-Done CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants