Closed mjfusa closed 1 year ago
@mjfusa Can you try building in Release? I have a faint memory of this (or something packaging project related) that just silently does nothing when building in Debug configurations. Not saying this isn't a bug, just curious.
Thanks for the suggestion @riverar - unfortunately I get the same result (no appinstaller or index.html files) in Release.
After changing my existing two project with separate packaging project into a single project I made the same observation. The index.html and app installers are missing.
This is a known gap, single-project MSIX unfortunately doesn't support creating the appinstaller file. You can use the classic Windows Packaging Project (two projects) for now.
How important is appinstaller support in single-project MSIX for you? You can add your vote here: https://portal.productboard.com/winappsdk/1-windows-app-sdk/c/55-support-generating-appinstaller-file-in-single-project-msix
Thanks, voted.
if this is not supported why there is an option to provide the path to the installer folder ? That is confusing and makes people think it's actually supported. I
I can't see this problem solved in 1.0.2. What's more, only the last platform selected is generated (x86, x64 or arm64), and the msixbundle is not created either.
These are the settings selected:
Single-project MSIX Packaging won't support creation of .msixbundle packages until WinAppSdk 1.2 at the earliest. Until that support is added, the VS wizard is effectively just setting some MSBuild properties that get ignored if you tell it to produce a bundle.
Regarding the missing .appinstaller even after upgrading to 1.0.2, can you verify that you checked this box at the beginning of the wizard?
Hi! Thanks for the quick response!
Starting the Create App Packages wizard:
The image at the end of the process:
And the final folders:
As a note: when creating the package, I see VS genererate x86 target, but when VS begins compiling x64 target, it inmediatly deletes the _x86 target.
Thanks!
That is bizarre... I'm using what should be identical settings, but I'm seeing the expected behavior (both architectures present in $(AppPackageDir)
, and a .appinstaller
for each):
I think I found the problem in my settings: in the Create App Packaged wizard, the option Generate App Bundle must be set in Never. This way the wizard create the .appinstallers and the index.html.
Thanks for the support!
Is there a supported MSBuild option to generate this index.html for single-project MSIX?
I'm setting up an Azure DevOps CI/CD pipeline and am able to generate the .msix and .appinstaller for the single-project MSIX using the following MSBuild options:
/p:AppxPackageDir=D:\AppxPackages\
/p:GenerateAppxPackageOnBuild=true
/p:AppxBundle=Never
/p:UapAppxPackageBuildMode=SideLoadOnly
/p:GenerateAppInstallerFile=true
/p:AppInstallerUri=https:\\foo.net
/p:HoursBetweenUpdateChecks=24
The index.html file is still missing.
@headerjson Double-check that's being built in a Release configuration. If I remember correctly, nothing happens (silently) if in Debug. (Or this behavior changed and you can ignore me.)
/p:AppxPackageDir=D:\AppxPackages\ /p:GenerateAppxPackageOnBuild=true /p:AppxBundle=Never /p:UapAppxPackageBuildMode=SideLoadOnly /p:GenerateAppInstallerFile=true /p:AppInstallerUri=https:\foo.net /p:HoursBetweenUpdateChecks=24 @headerjson you saved my life :) thank you
Vote for adding support for .appinstaller here!
Describe the bug
When building MSIX packages with a single project MSIX for automatic updates, the.appinstaller and index.html files are not created
Steps to reproduce the bug
Expected behavior
App packages get created in the AppPackages folder as expected, however the expected.appinstaller and index.html files are not created. This prevents the app from receiving automatic updates.
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Packaged (MSIX)
Windows version
Windows 11 (22000)
IDE
Visual Studio 2022
Additional context
No response