3 ms·
self contained executables simply bundles the libraries, but still requires a JIT compilation to execute. The description of bflat is what you are looking for,
by cheschire 5y ago
self contained executables simply bundles the libraries, but still requires a JIT compilation to execute.
The description of bflat is what you are looking for, and it's the second section of the readme.
bflat implements a form of ahead-of-time compilation.
This is closer to .net native conceptually, but that was only a UWP abomination.
edit: replies have pointed out this is actually closer to ReadyToRun, a neat feature I was not aware of.
- trynumber9 5y agoWhat about with ReadyToRun and single file?
- vexna 5y agoreplied with this on another post, but you can add `-p:PublishReadyToRun=true` to your `dotnet publish` command to do AOT. it blows up your binary in size, but pretty much gives your warmed up code from the start.
- Shadonototro 5y agoit doesn't fully AOT your app and worse it doesn't produce a native static executable it runs few tier for JIT, it still ship with IL and the JIT don't advertise ReadyToRun as "hey we got AOT at home, says Microsoft salesman" because all it does is makes me want to use Go instead, it feels and sounds bloaty