-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[9.0 RC2, Windows] After upgrading to 9.0 RC2, the game crashes at start both in Debug and Release configuration #25150
Comments
Latest .NET SDK (9.0.100-rc.2) is broken. I suggest to use previous one with using following command P.S. Same solution for .NET SDK 8.0.403 (try to use 8.0.402) |
Thanks for the repro, it was definitely helpful in figuring out the issue. For context, the exception being thrown is But given that there looks to be numerous folks impacted by this exception, we will look at if we can add fallback code in Until this is fixed, you can put the If you target the 19041 OS version in the Windows TFM:
|
I get multiple build errors when I add |
It should trigger restoring this nuget package. Can you provide a snippet of the errors you are getting when you specify |
The build cannot find some basic libraries like
So it looks like the process just can't find the right version of the package, since the errors look pretty random. |
I tested that the errors happen with any WindowsAppSDKPackaveVersion of 10.0.19041.34 or lower, and they do not happen with versions 10.0.19041.38 or higher (but then the produced app crashes at start). |
If it is of any help, I tried to run
|
I realized why you see the other errors. I have a fix that is not yet in the .NET SDK that allows to use older Windows SDK projection packages on .NET 9. Adding the below would make .NET 9 work with older Windows SDK projection packages like the .34 one.
|
Great, thanks, the game indeed works now with the given |
This should be resolved now with the release of .NET 9 GA |
Description
I tried to update the Windows version of our game GnollHack to RC2. It works well in RC1. However, after the update, the game simply crashes at start in an unhandled exception at CoreMessagingXP.dll (the stack trace shows KernelBase.dll, though) with the following stack trace:
I tried deleting
bin
andobj
directories, and randotnet restore
, but the problem persists. I can recall having vaguely similar issues when trying out WinAppSDK 1.6, but it is hard to tell what the problem is based on the exception. The game does build fine both in Debug and Release, but in both cases the build results in an app that crashes at start.I also tried rolling back to RC1, and then the game started to work just as before. With both RC1 and RC2, I used Visual Studio 2022 17.12.0 Preview 2.1.
EDIT: I also tested
dotnet build
from the command line, and it produces a similarly crashing app in RC2, while RC1 works.Steps to Reproduce
Link to public reproduction project repository
https://github.com/hyvanmielenpelit/GnollHack
Version with bug
Unknown/Other (9.0 RC2)
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other (9.0 RC1)
Affected platforms
Windows
Affected platform versions
Windows 11 (10.0.22631)
Did you find any workaround?
No, cannot use RC2 at the moment for Windows, and have to stick to RC1.
Relevant log output
Happy to provide whatever makes sense. The game builds just fine, but the resulting app does not work on Windows.
The text was updated successfully, but these errors were encountered: