Is it possible to include the .NET requirement to run a stand-alone application?

3

The title can be confusing, but the goal is to make an application written with .NET run without the .NET Framework. In practice this is almost impossible because the application depends on the .NET libraries to run, but in my theory, merge the .NET Framework together the executable will do it independent of .NET, having all its libraries inside the executable itself. p>

The merge would not be to insert all the .NET Framework libraries into the executable, but only the ones that the executable depends on.

Is this possible?

    
asked by anonymous 19.09.2018 / 05:57

1 answer

3

You can use .NET Core . It is also possible as Mono, but this is less and less necessary.

.NET Core has some limitations yet. By 2019 you will no longer have most of them and you can carry your full application for it. But today a good part can already be carried. Some things can never be ported, but in any case they are things that should not be used anyway, they are considered problematic and obsolete resources.

.NET Core is self-contained and does not rely on anything previously installed. You mount the executable only with what you need. It still needs at least one DLL in addition to the executable. To have 100% native and non-DLL executable you would need the .NET Native , but that for the moment only works for one type specific application.

If you depend on the .NET Framework full you have nothing to do. And actually if you already have the proper .NET on the machine, you do not even need it because everything is already there.

Anyway .NET Framework will become almost legacy. It will be enduring, it will evolve, but very slowly, and only what is easy and necessary. Core is the future for almost everything, especially new designs.

    
19.09.2018 / 13:26