What are the available tools to compile .NET projects to standalone native binaries?

只愿长相守 提交于 2019-12-07 09:24:58

问题


What tools do you know to compile .NET projects to native binaries that run without .NET Framework, so far I've found :

Xenocode Postbuild for .NET, which costs $1599.

Salamander .NET Linker, which costs $1249.

Mono Ahead-of-Time compilation (AOT), free. Thanks to JaredPar and Reed Copsey

Native Image Generator (Ngen.exe), free, doesn't do what I'm talking about, it does pre-JIT compiling, the resulting executable-file DOES need .NET framework to work.

Do you know any other products to add to the list?


回答1:


It's limited, but Mono AOT ($0) does this, as well.




回答2:


Add the Mono project to your list. They support compilation to native binaries.




回答3:


Remember that whatever you do:

  • Will not run to the full potential of the .NET Framework's ability (some optimizations are never available when precompiled)
  • You will not get fixes if security patches are released
  • Your distributable will be larger (possibly, but not guaranteed to be smaller than shipping the .NET runtime client profile)
  • You will not have access to certain .NET features



回答4:


While this is an question, it's an ongoing concern of a lot of people. In fact, MS seems to be doing something about it. It looks like we'll soon be able to generate native, statically linked apps using .NET languages and libraries.

http://blogs.msdn.com/b/dotnet/archive/2014/04/02/announcing-net-native-preview.aspx



来源:https://stackoverflow.com/questions/1240334/what-are-the-available-tools-to-compile-net-projects-to-standalone-native-binar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!