Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to transform CLR to EXE

when we create an application in VC#, talking about .net 3.5 in particular, the are comipled to CLR, what i want is that they should be compiled to EXE executable code that doesn't require .NET Framework Environment for them to run. Is it possible

like image 291
Moon Avatar asked Aug 29 '09 05:08

Moon


3 Answers

I guess you're asking how to statically link the parts of the framework your application needs. Please see this link from Jon Skeet for info on how to do that: http://www.yoda.arachsys.com/csharp/faq/#framework.required

like image 168
Brian Rasmussen Avatar answered Oct 28 '22 07:10

Brian Rasmussen


There are 3rd party products that do this. I know of no free ones.

like image 38
Preet Sangha Avatar answered Oct 28 '22 07:10

Preet Sangha


Even if you get a third party product, I think it just packages the .NET runtime in there somehow. I don't know how else it would run.

Why don't you just create an installer that has the .NET framework as a requirement? It should check for it and install it if the user doesn't have it already.

like image 1
Shea Daniels Avatar answered Oct 28 '22 07:10

Shea Daniels