@chethusk.bsky.social with what you showed in the .NET unboxed video, does that mean we can do NativeAOT cross compilation yet? Or is it restricted to dotnet tools?
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
0 reposts1 like
I don't think it will be feasible to get Windows → macOS to work, but the rest should thanks to `zig cc` github.com/slang25/Publ...
github.comMerge pull request #13 from slang25/copilot/fix-c3156ca5-4e36-4713-a8… · slang25/PublishAotCross@29da35bNuGet package to help you cross-compile Native AOT to different OSes/architectures - Merge pull request #13 from slang25/copilot/fix-c3156ca5-4e36-4713-a8… · slang25/PublishAotCross@29da35b