WindowsAppSDK
WindowsAppSDK copied to clipboard
Failed to package and publish app project that uses .appinstaller
Describe the bug
Copied from http://tasks.ms/40475506
When an app project is configured to enable automatic updates of its package when it's sideloaded (i.e. .appinstaller
), a build failure will be encountered when using VS 17.3.
Steps to reproduce the bug
Steps to reproduce:
- Create a C# Blank App, Packged (WinUI 3 in Desktop) Project.
- Right click on project node -> Package and Publish -> Create App Packages
- Select Sideloading with "Enable automatic updates" checked
- Select "Yes, select a certificate" -> Create -> Next -> Next
- Type a valid location in Installer location -> Create
- Observe the result in output window
Expected behavior
Expected result: Publish successfully with app package and .appinstaller files created.
Actual Result: Failed 1 error: The "Microsoft.Build.Utilities.TaskItem[]" type of the "AppInstallerFileWrites" parameter of the "WinAppSdkGenerateAppInstallerFile" task is not supported by MSBuild. App2 C:\Users<username>.nuget\packages\microsoft.windowsappsdk\1.1.0\buildTransitive\Microsoft.Build.Msix.Packaging.targets
Screenshots
No response
NuGet package version
1.1.3
Packaging type
Packaged (MSIX)
Windows version
No response
IDE
Visual Studio 2022-preview
Additional context
No response
This has been fixed internally and will be included in the next Windows App SDK 1.1 servicing update. In the meantime, affected users should avoid updating to Visual Studio 2022 17.3.
:tada:Microsoft.WindowsAppSDK v1.1.4
has been released which fixes this issue.
Handy links: