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?
974 Views Asked by Ankush Butole At
1
There are 1 best solutions below
Related Questions in CMD
- Set req query output to a variable
- 'No such file or directory' installing RTC-Tools through pip
- Merge all *csv and remove duplicate headers using command prompt except top row
- Trying to launch batch file from powershell, and immediately closes
- How to export CMD output to a text file in C# after all the text printing on the CMD window is done?
- 'pip install mariadb' states that it cannot find include file 'mysql.h' on my Windows 10 dekstop
- Python Console commands
- How use subprocess.run with cmd external program in phython
- How do I restart a batch file in PowerShell?
- execute cmd commands as admin with java code
- PostgreSQL 16 database will not run as service, must have a CMD open for it to work
- How can I unload Visual Studio projects via batch file/developer command prompt?
- Connect to a specific country using Psiphon vpn from Command line
- How do I run multiple instances of my Powershell function in parallel?
- cmd command through powershell fails with error "The string is missing the terminator: '."
Related Questions in UWP
- How to make that each seller has its own different set of products using sqlite and uwp
- How can i solve SQLITE_IOERR_SEEK on Unreal UWP application on MS Hololens2
- UWP Blank app throws error code: The app didn't start.. Activation phase: COM ActivateExtension
- How can I tell if a control is actually Visible in UWP?
- DEP0700: Registration of the app failed UWP in release mode
- Linker errors when adding a native c++ static library to Windows runtime component (UWP)
- uwp app only accepts input whenever i have opened on conhost/powershell/cmd
- uwp - WebAuthenticationBroker does not show cloudflare captcha
- How do I get the typename of an arbitrary XAML FrameworkElement?
- Apryse PDFTron SetDoc method throws AccessViolationException
- How do you know which items are realized (non-virtualized) in an ItemsRepeater?
- How to copy or drag n drop image from Webview2 to Canvas?
- UWP app Shutdown PC don't work in kiosk mode
- Path denied error when building UWP app in release
- Display Data from Drive D: in the Gridview
Related Questions in POST-BUILD-EVENT
- How do I generate the swagger file, swagger CLI isn't supported with .net 8
- Error: "MSB3073 The command "dotnet swagger tofile --output swagger_v1.json bin\Debug\net6.0\TestSwaggerGenWithDotnetSix.dll v1" exited with code 1."
- What is the right way to move references around in my output folder?
- How to get the compiler version in a post-build event?
- Why can't I see the commit hash of my application in a post-build event?
- Visual Studio post-build event macro of EditBin not working
- Getting Version Number in GitHub Actions for a .Net Maui App
- What is wrong with this Postbuild event command?
- Multiple post-build events in Visual Studio 2022
- How to get target directory of other project under same solution fo post build action of project (VS C#)
- Getting 'exited with code 9009' when trying to copy files via post build event - VS 2017
- How to make an error in a Visual Studio post-build event make Visual Studio consider the build as failed?
- PostPublish.bat file works when called using Command Prompt, Throwing error when called as a Post Publish Event
- Trigger another jenkins Pipeline B after success of jenkins pipeline A
- Why does the post-build event not cd?
Related Questions in MAKEAPPX
- Blocked executables FAIL occurs when using "Windows App Certification Kit" for MSIX files made with Python
- How to replace a .winmd in a customer's .appx, .msix, .msixbundle package?
- Using Makeappx to encrypt/copy-protect specific files UWP
- OpenGL Reporting an old version when project packaged as a Windows `.appx` or `.msix` file
- UWP package creation Error info: Packaname different
- "Create App Packages" from Command Line instead of Visual Studio
- AppExecutionAlias does not run under the Store Context
- Create APPX package and DMG package on windows
- Change Package Identity Name,Publisher & ReSign appxbundle
- How can I make sms web service on python to send sms to every where?
- How to use makeappx to create msixbundle files that can be uploaded to the store according to the appxmanifest file?
- Can I build a UWP sideload app that is dependency-complete on installation without using Add-AppDevPackage.ps1?
- Can I test JavaScript WinRT code without installing Visual Studio?
- why MakeAppx generate 0 kb file?
- APPX creation for Microsoft Store fails to find assets
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 # Hahtags
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.