Build Windows Phone 8.1 app package using makeappx.exe
I have a Windows Phone 8.1 (not Silverlight) project. I want to create an application package using makeappx.exe without Visual Studio. Using the command
C:\Program Files (x86)\Windows Kits\8.1\bin\x64>makeappx.exe pack /v /l
/d C:\MyAppProjectFolder\
/p C:\MyAppProjectFolder\MyApp.appx
But there were mistakes:
MakeAppx : error: You must include a valid app package manifest file named AppxManifest.xml in the source.
MakeAppx : error: Package creation failed.
MakeAppx : error: 0x80080203 - The specified package format is not valid: The file is not a valid app package because it
The project does not contain a file AppxManifest.xml
. But it contains a file Package.appxmanifest
. Should I create a AppxManifest.xml
mannualy? I cannot find information on this on the MSDN pages.
source to share
You just need to copy Package.appxmanifest
, rename to, AppxManifest
and replace this:
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="YourAppName.App">
:
<Application Id="App"
Executable="bin\debug\YourAppName.exe"
EntryPoint="YourAppName.App">
You can also create an Appx by creating a project with MSBuild
, as per the answer How to deploy APPX to run Windows Phone emulator? ...
This worked for me, but I am trying to find something better, if so, I will edit this answer.
source to share
If you want to manually create the appx package, then yes, you will need to create it AppxManifest.xml
manually. Visual studio usually uses the information in yours Package.appxmanifest
to create it AppxManifest.xml
for you.
MSDN: How to create a basic package manifest for Windows 8 (it's valid for 8.1 appx)
You may also need to create resources.pri
(with makepri.exe) a mapping file that tells you makeappx.exe
which files to include in which paths in the package, depending on how you do it.
source to share