Skip to content

Failure with AOT in .NET 10, but not in .NET 9 #121590

@AaronRobinsonMSFT

Description

@AaronRobinsonMSFT

I just did a control variable method to test the application.
Control variables:.NET versions (.NET 9 and.NET 10), and the test results are as follows
Everything else is the same: CsWinRT 2.2.0, Windows App SDK 1.8.3
The results are as follows

.NET 9 runs normally

Image Image Image

.NET 10 runs not responsed

Image Image

By controlling the variables, it was found that there was indeed a problem with .NET. At this point, Optimize is also enabled

The "unresponse" incident is not quite the same as an exception. An exception can directly locate where the problem lies in the program, while an "unresponse" merely indicates that there is a problem with the application. Since there is no stack information, it is impossible to specifically determine what the problem is. So I'm also very confused. (I'm sorry for my limited knowledge.)

If you have time, you can check out my project to figure out exactly where the problem lies, or I see that you have already merged the fix code related to this issue. If possible, could I download the nightly .NET SDK version (including the fixes) and the corresponding nuget package for testing?

.NET 9 will end support in half a year. If this issue cannot be found within this half year, I may switch to the stable WinUI 3 with .NET Framework to continue using my project. (Please excuse my limited ability.)

@jkotas @AaronRobinsonMSFT @MichalStrehovsky

Originally posted by @Gaoyifei1011 in #121538

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions