Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when package name contains a special characters #227

Open
taoyouh opened this issue May 3, 2022 · 0 comments
Open

Fails when package name contains a special characters #227

taoyouh opened this issue May 3, 2022 · 0 comments

Comments

@taoyouh
Copy link

taoyouh commented May 3, 2022

Steps to reproduce:

  1. Create a new project using the WinUI 3 two-project template. There will be a MSIX packaging project called xxx (Packaged) which contains a space and a pair of parentheses.
  2. Use StoreBroker to create a submission containing that msixupload (using New-SubmissionPackage).
  3. The command fails saying:
Read-AppPackageBundleMetadata : Cannot validate argument on parameter 'AppPackagePath'. Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\appveyor\Documents\WindowsPowerShell\Modules\StoreBroker\StoreBroker\StoreBroker\PackageTool.ps1:2204 char:20

Error detail:
See the following code. It tries to find the msix package declared in the manifest.

$searchPath = Join-Path -Path $expandedContainerPath -ChildPath (Split-Path -Path $application.FileName -Parent)
$searchFilename = Split-Path -Path $application.FileName -Leaf
$appPackageFilePath = (Get-ChildItem -Recurse -Path $searchPath -Include $searchFilename).FullName

In the manifest of my project, the package name is UniversalFtpServer (Package)_1.4.1.0_x86.msix, but the actual file is UniversalFtpServer%20%28Package%29_1.4.1.0_x86.msix. The idfference makes StoreBroker unable to find the correct msix package and fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant