Is it possible to run an application written in .NET without using the .NET Framework?
- 2Try to write more detailed questions. Explain what exactly you want to receive, what you did yourself, what did not work out? - Nicolas Chabanovsky ♦
- oneHorror zaminusovali. A perfectly normal question, although it was possible to add some details, for example, why it was needed - then the answer would be more complete. - Athari
3 answers
This is currently not possible. Running applications written in .NET and, accordingly, relying entirely on .NET, is impossible without installing the .NET Framework.
Currently, a .NET Native project is being developed that will allow compiling a .NET application into a fully independent executable file. It is based on the Visual Studio C ++ compiler. However, this project is still at an early stage of development, and the first goal for it is the Windows Store, where performance and resource consumption are most critical.
In the near future, compiling a WPF application into a fully independent binary is not planned. You will have to always install the .NET Framework, which, however, should not cause problems, because it is a system component of the operating system, which is updated using Windows Update - just do not turn off the updates.
- The .NET Native idea is very good, but the emphasis on the Windows Store spoils everything. They would begin with desktop applications - the prices would not be. - Alexis
- @ z668 The desktop is too extensive and functional. The Windows Store is a stripped-down platform, plus the hardware on which this application runs is too weak. Of course, I am also not happy with the priority on the stack, but you can understand the MS. - Athari
WPF is the flesh of the .NET technology, so WPF cannot exist without the .NET framework. At least this is the situation at the moment, and, as far as I know, no changes in this field have been announced.
There is something in this direction called Spoon Studio, but it is far from free and has some limitations. Details here: link