SamSol
SamSol

Reputation: 2881

Make pure native Exe for C#/VB.net Application [No need .net framework to run Exe]

How to make pure native Exe for C#/VB.net Application? [After that No need .net framework to run that Exe]

Upvotes: 0

Views: 1436

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1503290

Short answer: you can't.

Longer answer: there are programs which wrap the framework up, such as VMware ThinApp (previously known as Thinstall) - but they're still effectively using the framework, just in a different deployment form.

Even longer answer: Mono has an ahead-of-time compiler and bundler which allows it to create native apps (e.g. for the iPhone) - but I don't know what the state of play is with using that for Windows, and the normal caveats of compatibility between .NET and Mono apply.

Anything like this is likely to have significant implications if your application uses reflection, loads plug-ins etc. Personally I'd advise against it unless you've got a really good reason for not just installing the normal framework.

Upvotes: 5

Related Questions