Hello! Is it possible to make the operating system not require the installation of the .NET Framework and other components to run the program and take them from the program files? For example, .NET Framework 4.6.2 installs for about or more than 5 minutes on a weak computer.

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; //using System.IO; //using System.IO.Compression; using System.Linq; //using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; 

enter image description here

  • Well, in one form or another .NET should be on the machine. Do you think it's just set for 5 minutes? If you could save money, Microsoft would save. - VladD
  • @VlaD What to do? - aaa
  • And why the installation option is not suitable? It seems that on modern systems everywhere .NET stands and so. - VladD
  • @VlaD There the web installer is needed for 2 minutes. I also downloaded via Nuget System.IO.Compression.FileSystem, does it only need the .NET Framework on another system? I will now add a list of my connections to the project. The fact that I added a comment myself. - aaa
  • one
    You can use an installer, which somehow can find out which version of .NET you need to install, BUT you can’t connect only 2-3 or several files from .NET because they are all very tightly tied and used one in the other. Therefore, this is called the framework - the BASIS for development, it is not just a few files where there are classes or functionality that can be modularly pof-loaded. - Daniel Protopopov

1 answer 1

Until recently, there was no such possibility, and installers had to be used.

Now we have .NET Core and its self-contained applications. Many articles have already been written on this subject, including in Russian.

Here, for example: https://habrahabr.ru/post/311520/

  • one
    .NET Core is still raw and there will never be WPF - vitidev
  • @vitidev well, yes, it is still damp, but it is being actively finished, and already this year it will probably be ready for commercial use. As for WPF, quite good third-party libraries are being developed for developing cross-platform UI on .NET, and System.Xaml is planned to be released as part of .NET Standard 2.0 in the first quarter of this year. So, while everything is not perfect yet, we are actively moving in the right direction) - Fynivx
  • @Fynivx About System.Xaml in the .NET Standard 2.0, can I link to the source? - Raider
  • @vitidev I can not find a post in which I read about System.Xaml, but here is the article that says that .NET Standard 2.0 will support UWP. blogs.msdn.microsoft.com/dotnet/2016/09/26/… - Fynivx
  • Core is positioned as a cross-platform. Yes, and UWP worse WPF. And okay UI (there is even Avalonia there), but the lack of support for System.Transactions interferes. - vitidev