Desktop App Converter -PackageName Error

百般思念 提交于 2020-01-03 04:58:09

问题


I am trying to convert my app for the windows store using Desktop App Converter.

If I set the -PackageName option to the Package/Identity/Name given in the dashboard, Desktop App Converter stops with a write error for -PackageName.

But if I put -PackageName to the display name that I want, when I submit the appx file to the windows store I get: Invalid package identity name: and Invalid package family name:

*update

My Pakage/Identity/name takes the form 1234MyApp.MyApp. If I leave out the '1234' then Desktop App Converter completes its run. But of course when I try to submit the appx file to the windows store I the Invalid package identity name and Invalid package family name errors.


回答1:


You're supposed to use your own package name as the Package Name in Desktop App Converter so that you could manage to generate the appx package.

Then you will need to open the Package Manifest.xml to modify the Package Identity Name to match the value in Dev Center in order to upload it to the Windows Store.

By the way, you need to fill in and submit this form to acquire the permission to publish the Desktop converted app to the Store.




回答2:


I just came across this issue today and was able to solve it by using the windows store package name that would be your "1234MyApp.MyApp" with an AppId of something else like maybe your executable name "MyApp.exe".

My PowerShell looked something like...

$publisher = "1234MyApp.MyApp"
$appId = "MyApp.exe"

DesktopAppConverter -Installer $binDirectory -AppExecutable InventoryAudit.WpfApp.exe -Destination $packageDirectory -AppId $appId -PackageName $packageName -Publisher $publisher -AppDisplayName $appDisplayName -AppDescription $appDescription -PackageDisplayName $packageDisplayName -PackagePublisherDisplayName $packagePublisherDisplayName -Verbose -MakeAppx -Version $version

I only provided the relevant variables. Hope this helps the next person to have this issue.



来源:https://stackoverflow.com/questions/43028693/desktop-app-converter-packagename-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!