I’ve seen loads of examples on virtualization. PostBuild does exactly what I am trying to achieve.
It bundles the .NET Framework into the executable being run, so that it doesn’t need the .NET Framework to run at all. Bad thing is that the size of the file is around 50 megabytes though, but that doesn’t matter to me.
How can I do the same virtualization stuff as PostBuild can do for me, with my application in .NET? A commercial solution is not an option here.
Have a look at ILMerge: http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx