I have created win32 .Net desktop application. I want to create appx bundle for my solution on every post-build event using makeappx.exe tool. When I am running command on post build event : MakeAppx pack /d input_directorypath /p filepath.appx ,it fails with error code 9009. I don't know why this is giving error as when I run this command using developer command prompt, it gives desired output. I also noticed that when I run above command using normal command prompt it gives same error. Please help on this.
How to integrate Makeappx.exe command in postbuild event of VS2015 to create appx for the current solution?
973 Views Asked by Ankush Butole At
1
There are 1 best solutions below
Related Questions in CMD
- Execute a command over multiple files
- R CMD recognize only some commands
- FIle download via cmd in windows using HTML
- CMD/BATCH - Had to run batch script 3 times to get full result
- Lauching program via command in php
- CMD specifying columns to save?
- Set environment in current cmd using batch script
- Running a powershell command inside cmd script and replacing string content
- Is it possible to close every application via a batch file?
- Implementing timed input in batch file. (countdown to a minute)
- How to remove "Remote desktop disconnected" window and close mstsc.exe
- Extracting specific registry key from REG QUERY based on search string
- Blank path in environment variable causing elevated command prompt to not respond
- CMD - Takeown giving "The data area passed to a system call is too small"
- Compare 2 text files and display the difference between them (PowerShell or CMD)
Related Questions in UWP
- Error connecting UWP app to Arduino by USB
- Need xaml ellipse to contain two fill colors that can move up or down like filling a gas tank
- OAuth in PlayReady License Retrieval in UWP
- Cannot set combobox selected item opening a view
- UWP MediaPlayerElement Backwards Compatibility
- How to completely close/release a WebView after it has loaded a youtube link?
- My application has no rights on any folder
- UWP Get Rotation Value (Angle) from Storyboard Animation During or After
- How to load images to a page as soon as they are loaded from a folder in UWP
- How to store setting with UWP C#?
- Cannot create an URI file from text-to-speech audio on UWP
- Create and Delete Folder. Move the file to folder and move the file to outside of the folder
- Using custom video Effects with MediaElement
- UWP xaml: How to display a button with icon and text in it?
- Enlarge image after click C# UWP
Related Questions in POST-BUILD-EVENT
- Post build events using relative paths do not work in VS 2013
- Unable to execute a .bat file in post build event command line
- How can I tell if an application is running as a post/pre-build event or standalone?
- $(SolutionDir) in MS VisualStudio Build events
- Post build script to copy all the files from different to output directory
- How do I use msbuild in Visual Studio's post build event?
- How do I add post-build events to InstallShield Limited Edition
- How can I do a post build event in sharpdevelop
- VisualStudion 2012: Post build Events
- Where can we open the `Post-build script` box of a build process template?
- Post event build exit with code 1 error in Visual studio 2013
- zipalign is working manually but failing under Jenkins post build
- TFS 2010 Build Automation and post-build event
- Updating local nuget package on post-build event
- How can I retrieve major/minor/build/revision number on build events
Related Questions in MAKEAPPX
- Microsoft edge extension package command not working
- UWP package creation Error info: Packaname different
- What are mapping files for building against UWP / Centennial projects and how do I make them?
- What is .EAppxBundle Compared to .AppxBundle
- How to integrate Makeappx.exe command in postbuild event of VS2015 to create appx for the current solution?
- How to auto-increment the version in AppxManifest.xml when appx is created using MakeAppx tool?
- Adding a Sideloading App Package (.appx) to a Suite/Advanced UI Project
- MSBuild does not build solution file because of mismatching package name
- Change Package Identity Name,Publisher & ReSign appxbundle
- Create APPX package and DMG package on windows
- APPX creation for Microsoft Store fails to find assets
- UWP .appx file naming
- How to use makeappx to create msixbundle files that can be uploaded to the store according to the appxmanifest file?
- How to create .appxupload for created appx using makeappx tool?
- Control compression of html file when packaging UWP app as an APPX
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have tested your command and reproduced your issue. The problem is that when you run command on post build event, it did not found
makeappx.exetool. The command is incomplete. Below is a complete command.For your requirement, you could add
C:\Program Files (x86)\Windows Kits\10\bin\x64path to Environment Variables, and then you could successfully run the command that you have mentioned.Please note if the appx package already exists in destination path, the post build event will be stuck. Because it's waiting for you to input "Y" to cover the old package. However, currently it did not provide inputting interface. So you should remove the old package manually.