Not quite as easy as with GoLang, but at least it is possible to get native executable from C# code.
dotnet/corert: This repo contains CoreRT, a .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying compiler toolchain.
CoreRT is an AOT-optimized .NET Core runtime...
compiling a .NET Core Console application with CoreRT.
corert/samples/HelloWorld at master · dotnet/corert @ GitHub
dotnet new console -o HelloWorld > cd HelloWorld
dotnet new nuget
dotnet add package Microsoft.DotNet.ILCompiler -v 1.0.0-alpha-*
dotnet publish -r win-x64 -c release
dotnet publish -r win-x64 -c release
No comments:
Post a Comment