4 ms·
Not really - it already compiles C#, F# and VB.NET to .NET bytecode, which can be JIT compiled by the runtime to some optimized native code as the program runs.
by smcl 4y ago
Not really - it already compiles C#, F# and VB.NET to .NET bytecode, which can be JIT compiled by the runtime to some optimized native code as the program runs. It's just that the native code can now be produced by the .NET SDK during the initial build ("ahead of time").
- RachelF 4y agoSo can it compile to native machine code as an executable file, link in all the needed libraries and just run as-is now? Or does it need a huge amount of supporting .NET libraries included also installed on the target?
- smcl 4y agoCheck the docs out: https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/compiling.md https://github.com/dotnet/runtime/blob/main/src/coreclr/nati... Seems to be the case that you just need to install the Microsoft.DotNet.ILCompiler package, and then `dotnet publish...` with the desired target.
- pjmlp 4y agoCough, NGEN, MDIL, .NET Native and Xamarin.