-
Notifications
You must be signed in to change notification settings - Fork 693
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
XamlControlsResources app crash 1.6 #9955
Comments
For some reason, even when creating a new project from a template, when updating to 1.6 and setting the PublishAot property, the application crashes when launched |
Did you install cswinrt2.1.1 after the upgrade? |
Yes |
You could repalce XamlControlsResources with https://github.com/Gaoyifei1011/GetStoreApp/blob/main/GetStoreApp/WinUIApp.xaml This can also include the style of the winui 3 controls, which worked well in my application |
This seems to be a bug in CommunityToolkit. After downgrading the packages from 8.1 to 8.0, the app no longer crashes |
Please be sure to read our release notes, there's many pitfalls with ensuring the updating of TFMs, publish profiles, and a regression if you have a WAP project setup. More info in this issue: CommunityToolkit/Windows#489 We also haven't fully tested/updated against 1.6 and Native AOT (we have most annotations now, but haven't validated controls). Our tracking issue for that work is here: CommunityToolkit/Tooling-Windows-Submodule#205 - we should have a build in our public ADO feed out of main built against 1.6 for early testing shortly. The packages for 1.6-preview2 are being merged today and should be available shortly. |
I am also seeing this problem and still seeing it after down grading all of the community toolkits to the closest version to 8.0. it's only happening for me in debug using VS, and from what I've read this seems to be a recurring problem. update: I updated all the packages again, with the exception of the build tools which i down graded to the previous version: Microsoft.Windows.SDK.BuildTools Version=10.0.22621.3233
|
Pairing down the key difference here from @thales-man's comment above:
Looks like something maybe regressed in the newest build tools package then? |
do you have any class library which contains Resource dictionary and you are refrencing it in app.xaml ? |
I'm not sure what you're asking. Personally, I've posted a result, so I've moved on. |
I asked the starter. |
It helped me roll back to version 8.0 of CommunityToolkit, but yesterday they released a new version on which I haven't tested this error yet |
<?xml version="1.0" encoding="utf-8"?>
<Application
x:Class="My.Host.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
</ResourceDictionary.MergedDictionaries>
<!-- color brushes -->
<SolidColorBrush x:Key="ErrorColor" Color="Red" /> like this? so I have a class and resources? |
like this:
|
that didn't work for me, I've already tried it. |
i tried with a very very simple rd, and it seems that resources can not be found.
@Scottj1s @codendone Is this problem related to a known problem? |
Describe the bug
After updating from 1.5 to 1.6 application starts crashing
Steps to reproduce the bug
After updating from 1.5 to 1.6 application starts crashing, with NativeAOT enabled
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response
The text was updated successfully, but these errors were encountered: