Open apple-ouyang opened 3 years ago
I get the same error when trying to build my custom Ubuntu 20.04 distro using the build.bat.
4>MakeAppx : error : 0x80080215 - Non appx extensions are not allowed for payload packages targeting older platforms.
I solved the problem, but I did't remember what have I done. Sorry it was long time ago for me. Here is the repo I am using now, I changed a lot of placeses to get it work. Hope it will help you.
I think i figured out the issue. I searched the error message and came across a forum post describing a solution. I said I needed to set the <TargetDeviceFamily>
to something greater than 10.0.17xxx. Retargeting the solution to use 10.0.19041 seemed to fix the error. Thanks, though!
I can deploy the solution, and my ditro runs well in my computer. When I want to publish it, I have done those steps:
Build started... 1>------ Build started: Project: launcher, Configuration: Release x64 ------ 1>Compiling Messages... 1>MC: Compiling D:\AQA\WorkShop\WSL\WSL-DistroLauncher\DistroLauncher\messages.mc 1>D:\IDE\VisualStuidio2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): warning MSB8065: Custom build for item "messages.mc" succeeded, but specified output "d:\aqa\workshop\wsl\wsl-distrolauncher\distrolauncher\msg0409.bin" has not been created. This may cause incremental build to work incorrectly. 1>stdafx.cpp 1>DistributionInfo.cpp 1>DistroLauncher.cpp 1>Helpers.cpp 1>WslApiLoader.cpp 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification 1>Generating code 1>0 of 210 functions ( 0.0%) were compiled, the rest were copied from previous compilation. 1> 0 functions were new in current compilation 1> 0 functions had inline decision re-evaluated but remain unchanged 1>Finished generating code 1>DistroLauncher.vcxproj -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\launcher.exe 1>Done building project "DistroLauncher.vcxproj". 2>------ Build started: Project: DistroLauncher-Appx, Configuration: Release x64 ------ 2>Copy D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\launcher.exe into D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\openEuler.exe 2>已复制 1 个文件。 2>D:\IDE\VisualStuidio2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): warning MSB8064: Custom build for item "openEuler" succeeded, but specified dependency "d:\aqa\workshop\wsl\wsl-distrolauncher\distrolauncher-appx\openeuler" does not exist. This may cause incremental build to work incorrectly. 2>D:\IDE\VisualStuidio2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): warning MSB8065: Custom build for item "openEuler" succeeded, but specified output "d:\aqa\workshop\wsl\wsl-distrolauncher\distrolauncher-appx\openeuler.exe" has not been created. This may cause incremental build to work incorrectly. 2>MyDistro.appxmanifest(14,6): warning APPX0006: This project uses the 'runFullTrust' capability. You should use the Windows Application Packaging Project to produce the store and sideload packages. See https://go.microsoft.com/fwlink/?linkid=871803 for more information. 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\DistroLauncher-Appx_1.0.3.0_x64.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\DistroLauncher-Appx_1.0.3.0_scale-100.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\DistroLauncher-Appx_1.0.3.0_scale-125.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\DistroLauncher-Appx_1.0.3.0_scale-150.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\DistroLauncher-Appx_1.0.3.0_scale-400.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\Upload\DistroLauncher-Appx_1.0.3.0_scale-100.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\Upload\DistroLauncher-Appx_1.0.3.0_scale-125.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\Upload\DistroLauncher-Appx_1.0.3.0_scale-150.msix 2>DistroLauncher-Appx -> D:\AQA\WorkShop\WSL\WSL-DistroLauncher\x64\Release\DistroLauncher-Appx\Upload\DistroLauncher-Appx_1.0.3.0_scale-400.msix 2>MakeAppx : error : Error info: ?????? 2>MakeAppx : error : Bundle creation failed. 2>MakeAppx : error : 0x80080215 - ????????????????? appx ???? 2>Done building project "DistroLauncher-Appx.vcxproj" -- FAILED. ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ========== Package: 0 succeeded, 1 failed =========== ========== App Bundle: 0 succeeded, 1 failed ===========