Create a standalone exe without the need to install .NET framework

Charlotte Vancraeynest picture Charlotte Vancraeynest · May 23, 2013 · Viewed 32k times · Source

I'm a student and at the moment i'm doing an internship at a company. This internship is about analysing a project. For this project I have made a demo to show to the Marketing director. The demo I have made is a simple project created in Visual Studio 2010 in c# with Windows Forms and a connection to an Access database.

So now i have to show this demo to this director in a presentation but after this presentation the director wants the project on his computer so he can try and use it. The problem is now that the computers here in this company don't have .NET framework 4.0 and the computers are so protected over here that we can't install anything new. To install something you have to go through a procedure that takes weeks.

I have looked al over the internet but all i find is how to install the .NET framework.

Is there any possible way that I can create an standalone exe without the need to install .NET framework? Please help!

Answer

PeterFnet picture PeterFnet · Oct 15, 2015

C# now supports this with .NET Native.

Instead of compiling to intermediate language, it will compile to native code and run with statically linked .NET libraries. Therefore, there will be no .Net Runtime requirements for end-users.

https://msdn.microsoft.com/en-us/vstudio/dn642499.aspx

https://msdn.microsoft.com/en-us/library/dn584397(v=vs.110).aspx

Only works for Windows 10