tags:

views:

297

answers:

4

I saw this Ars Article about .NET Mono version being used to statically compiled and not have the JIT or CLR for the iPhone & Wii. I'm assuming you can also do this for PC's w/o .NET installed. The articles seem to imply this can only be done w/ Mono, but does anyone here know if there's a way to do it with Microsoft .Net implementation?

A: 

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

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

Andreas Huber
A: 

Well, "ngen" can pre-JIT an app. There are other tools for avoiding having a full .NET install, but I try to avoid them. In general: yes, you need a framework (but it could be Client Profile, Compact Framework, Micro Framework, or Silverlight if you want light-weight; all are MS CLR variants).

Marc Gravell
A: 

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

The other issue is the missing linker in .net. Its job ( if it existed ) is to just take the needed part from the framework. And removing the need for full .net installation on the client. As other suggested, there are alternative for linker in .net. Not that I tried any of them.

Igal Serban
Microsoft could have bypassed all this nonsense by bundling it into the operating system and service packs. I think by not doing this they caused a lot of confusion and misplaced paranoia among the general audience of IT non-programmers. It just presented an unnecessary stumbling block.
BobbyShaftoe
+1  A: 

There are a few tools that allow you to do this. There are some drawbacks because there are actually good reasons to have an updatable framework. However, there are definitely some advantages. One of the better products is PostBuild:

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

BobbyShaftoe
@Bobby - have you used this? I've heard some things about it in passing, but I've never come across anyone that's used it and it's pretty pricy to consider purely for experimentation...
BenAlabaster
Yeah, I used this on some small applications. This were small apps where the users had some paranoia about the .NET framework after I had already devloped the app. Also, I tried some toy apps. Haven't tried a big application with it; it wouldn't surprise me if there were some strange bugs.
BobbyShaftoe