Post

No - you can't do nativeAOT cross-compilation at all out-of-the-box, even with .NET tools. In my demo I specifically had to build the AOT'd version of the tool for my current platform. For real-world AOT tools, you need to do a scatter/gather to build on each platform: github.com/baronfel/mul...

github.comdon't forget pinning · baronfel/multi-rid-tool@019674aAn example of using the .NET 10 SDK to create platform-specific .NET tools - don't forget pinning · baronfel/multi-rid-tool@019674a

Thanks, Ido the same thing at work, but it's a little messy in that a different team look after the macOS runners, so I dream about having a single publish from one machine. I've been vibe coding this into existence by continuing the work of Michal Strehovský here: github.com/slang25/Publ...

github.comGitHub - slang25/PublishAotCross: NuGet package to help you cross-compile Native AOT to different OSes/architecturesNuGet package to help you cross-compile Native AOT to different OSes/architectures - slang25/PublishAotCross

Yeah, leveraging the work that other tools do is a great path - I think we just don't want to officially promote it because ReAsOnS. This platform decision about how to do AOT makes me sad continually.