问题
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