AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
25.07k stars 2.17k forks source link

Error publishing NativeAOT win x86 with .NET 9 #15863

Open dhirennjaypal opened 3 months ago

dhirennjaypal commented 3 months ago

Describe the bug

I made blank project with Avalonia prerelease and moved Program.cs from Project.Desktop to Project and deleted Project.desktop Changed CPU to x86 and changed .NET version to .NET 9. Added publishaot to true to csproj when i build and run project, it runs correctly but when i publish i get error here are files for reference

publish_log.txt GalaxyResearchTools.csproj.txt FolderProfile.pubxml.txt

To Reproduce

Expected behavior

It should have build the program

Avalonia version

11.1.0-beta2

OS

Windows

Additional context

No response

maxkatz6 commented 3 months ago

Please try latest nightly builds.