-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Unable to deploy WinUI App after updating to 8.0.10, 8.0.14, 8.0.20, or installing VS 17.10 #21744
Copy link
Copy link
Closed
Labels
area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, DebuggingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/windowss/needs-attentionIssue has more information and needs another lookIssue has more information and needs another looks/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, DebuggingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/windowss/needs-attentionIssue has more information and needs another lookIssue has more information and needs another looks/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Information
It looks like this is a bug in the Windows OS that went out beginning of March related to deploying the WinAppSDK runtime that's packaged with the WinAppSDK nuget. There is a planned OS update in the near future that will resolve this issue.
Workaround
2 available workarounds
Manually install the runtime that corresponds to the version you are using https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads
Set the project property in your MAUI app project. Ideally workaround 1 works for you. Disabling the DeploymentManager will cause some features of WinUI to no longer work.
Description
The program fails to compile after version 8.0.20 of the Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility packages.
Steps to Reproduce
1.Use visual studio 2022 to create a new MAUI project file.




2.Compile and run it on Windows platform, and the program starts normally.
(The Nuget package version used is shown in the figure)
4.Upgrade the nuget package version to 8.0.20.
5.Compile the program again and find that the program cannot run normally.
The exception information is as follows:
引发的异常:“System.Runtime.InteropServices.COMException”(位于 WinRT.Runtime.dll 中) WinRT 信息: 找不到元素。Link to public reproduction project repository
No response
Version with bug
8.0.20 SR4
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
8.0.14 SR3.1
Affected platforms
Windows
Affected platform versions
Windows 11,version 22631.3296
Did you find any workaround?
No response
Relevant log output
No response