Skip to content

Crash on a new blank project with winui3 Microsoft.WindowsAppSDK 1.7.250401001 #205

@Johnwikix

Description

@Johnwikix

Describe the bug

No response

Steps to reproduce the bug

Start a new blank project and add this codes
<Window x:Class="winuiTestDemoApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:winuiTestDemoApp" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:tb="using:H.NotifyIcon" Title="winuiTestDemoApp"> <Grid> <tb:TaskbarIcon x:Name="NotifyIcon" IconSource="/Assets/icon.ico" ToolTipText="WinUI 3 demo"> <tb:TaskbarIcon.ContextFlyout> <MenuFlyout> <MenuFlyoutItem Text="open"/> <MenuFlyoutSeparator/> <MenuFlyoutItem Text="exit"/> </MenuFlyout> </tb:TaskbarIcon.ContextFlyout> </tb:TaskbarIcon> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Button x:Name="myButton" Click="myButton_Click">Click Me</Button> </StackPanel> </Grid> </Window>
It works fine with Microsoft.WindowsAppSDK 1.6.250430001 but crash with Microsoft.WindowsAppSDK 1.7.250401001
Wired thing is I swtich to 1.6.250430001 then switch back to 1.7.250401001 and App does not crash and I can't reproduce this error now

Expected behavior

No response

Screenshots

No response

NuGet package version

No response

Platform

WinUI

IDE

Visual Studio 2022

Windows Version

No response

WindowsAppSDK Version

Other

WindowsAppSDK Type

Unpackaged

Manifest

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions