How can you statically compile Microsoft.NET code?

I saw this Ars Article about the .NET version of Mono, which is used for static compilation and does not have JIT or CLR for iPhone and Wii. I assume that you can also do this for a PC without .NET installed. The articles seem to imply that this can only be done w / Mono, but does anyone know if there is a way to do this with the implementation of Microsoft.Net?

+4
source share
4 answers

There are several tools that let you do this. There are some drawbacks, because there are actually good reasons to have an updated structure. However, there are certain advantages. One of the best products is PostBuild:

http://www.xenocode.com/Landing/Run-NET-Without-NET.aspx?gclid=CNWvof_ZgpgCFRRhnAodsgLkDQ

+2
source

There are two separate issues here. The compilation part can be done on .net with ngen .

Another problem is the missing linker in .net. His job (if it exists) is simply to take the necessary part from the frame. And eliminating the need to fully install .net on the client. As suggested, there is an alternative for the linker in .net. Not that I tried them.

+1
source

Salamander.NET Linker is one of the tools that can do this on a PC:

http://www.remotesoft.com/linker/index.html

0
source

Well, " ngen " can use a JIT application. There are other tools to avoid a full .NET installation, but I try to avoid them. In general: yes, you need infrastructure (but it can be a client profile, Compact Framework, Micro Framework or Silverlight, if you want to have light weight, all these are MS CLR options).

0
source

All Articles