Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARM64][WinUI] Publish/Package failed because of "WinAppSdkGenerateAppInstallerFile" #7862

Closed
1 of 2 tasks
XamlTest opened this issue Oct 24, 2022 · 3 comments
Closed
1 of 2 tasks
Assignees
Labels
bug Something isn't working needs-assignee-attention Assignee needs to follow-up or investigate this issue product-winui3 WinUI 3 issues team-Markup Issue for the Markup team
Milestone

Comments

@XamlTest
Copy link

Describe the bug

Publish/Package WinUI project failed with 2 errors.

Steps to reproduce the bug

VS version: 17.4.0 [33021.125.d17.4]
Note:

  1. This issue reproduces on the TargetFramework(net7.0-windows10.0.19041.0, net6.0-windows10.0.19041.0).
  2. This issue does not reproduce on x64.

Repro Steps:

  1. Create a Blank App, Packaged(WinUI 3 in Desktop) project
  2. Right click on project node -> Package and Publish -> Create App Packages
  3. Select Sideloading with "Enable automatic updates" checked
  4. Select a certificate by "Create", click Next
  5. Select "Yes, use current certificate", click Next
  6. Select packages for x86 and x64, click Next
  7. Enter a valid location in Installer location -> Create

Actual Result: Publish Failed with 2 errors.
APPX000: Task 'WinAppSdkGenerateAppInstallerFile' failed. Retrieving the COM class factory for component with CLSID {5842A140-FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).
MSB4018: The "WinAppSdkGenerateAppInstallerFile" task failed unexpectedly.
image

Expected behavior

Expected Result: Publish/Package successfully without error.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.2 Preview 1: 1.2.0-preview1

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@XamlTest XamlTest added the bug Something isn't working label Oct 24, 2022
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Oct 24, 2022
@bpulliam bpulliam added needs-assignee-attention Assignee needs to follow-up or investigate this issue and removed needs-triage Issue needs to be triaged by the area owners labels Oct 27, 2022
@bpulliam bpulliam self-assigned this Oct 27, 2022
@bpulliam bpulliam added the team-Markup Issue for the Markup team label Oct 27, 2022
@evelynwu-msft
Copy link
Contributor

evelynwu-msft commented Oct 28, 2022

I think the TargetFramework needs to be net7.0-windows10.0.22621.0 as the 22621 Windows SDK is the first one that includes an ARM64 version of AppxPackaging.dll

@bpulliam If targeting the latest Windows SDK is in fact the solution then we should update the C# project template accordingly.

@bpulliam
Copy link
Contributor

bpulliam commented Nov 2, 2022

Please update the Windows.SDK.BuildTools nuget to build 10.0.22621.755 and that should resolve your issue. You should not have to change your TFM. (and yes, we've made the change in the templates :))
Thanks!

@Scottj1s
Copy link
Member

Closing with recommended workaround, and fixed in 1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-assignee-attention Assignee needs to follow-up or investigate this issue product-winui3 WinUI 3 issues team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

4 participants