Is it possible to compile .NET IL code to machine code?

后端 未结 12 794
野趣味
野趣味 2020-12-08 04:49

I would like to distribute my .NET programs without the .NET framework. Is it possible to compile a .NET program to machine code?

相关标签:
12条回答
  • 2020-12-08 05:03

    Another (expensive and proprietary, licenses start at $1599) product that can do this is Xenocode Postbuild. Haven't used it myself though, with it costing about the gross national product of a small African country and all...

    0 讨论(0)
  • 2020-12-08 05:08

    There are some third party tools that do this, e.g.

    • http://www.remotesoft.com/linker/
    • http://www.xenocode.com/
    0 讨论(0)
  • 2020-12-08 05:09

    Yes, you can now! Recently Microsoft announced .NET Native, a piece of technology that compiles your application with .NET Native runtime (they call it MRT) into one binary (actually one executable and one dynamic library).

    See links: http://blogs.msdn.com/b/dotnet/archive/2014/04/02/announcing-net-native-preview.aspx http://blogs.msdn.com/b/dotnet/archive/2014/04/24/dotnetnative-performance.aspx

    0 讨论(0)
  • 2020-12-08 05:09

    I don't think that it is possible. You can make a prejitted assembly but you still need the framework.

    0 讨论(0)
  • 2020-12-08 05:10

    There is IL2CPU for the compilation part.

    0 讨论(0)
  • 2020-12-08 05:14

    If you just concerned with the size of deploying the Framework, you might read up on this.

    0 讨论(0)
提交回复
热议问题