Which . NET should I use?

Asked

Viewed 226 times

5

I will start the development of a program with C# using Winforms (Basic Calendar with Mysql) and it is my question which framework utilise.

This program can be made available on other computers and I don’t know which Windows might be installed.

What aspects should I look at?

  • 1

    I recommend you see the possibility of starting new projects with UWP and not Winforms. UWP is the technology that has received the most investments in its improvements, and Winforms is stagnating.

  • 1

    @Thiagolunardi Winforms is stagnant, however it is very stable and has a lot of material available for consultation.

  • 1

    @Murilo yes, is stable because it is very old and still in use, and has a lot of material because it is also a very old technology - qto more market time, more content will have been produced. However, it has already stagnated, it is no longer a trend - I believe it will soon be discontinued. UWP is the present - nor is the future more.

  • 1

    Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site.

  • Sorry the delay for the feedback. Yes, the answers helped me on the subject. The links complemented very well what I needed (very good table on the frameworks and versions of c#). Thank you

2 answers

5


Now my answer is a little different and should use the newer . NET Core, ie at least the 3.0 that accepts the use of Winforms. I’ll leave the original answer below, but this is it, go from . NET Core because the . NET Framework died.


What is best for you only you can say. I prefer to always use the most current, in this case is the . NET Framework 4.6.2. I have a question about the versions (which I need to update).

If you do everything right in the installation the . NET Framework required for your application will be installed or updated.

No matter what you use, I see no reason to use an older one. But you may know something I don’t. You can decide that you only want to use the . NET already installed. There you have to see which is the oldest computer that will use it and use in your application the version that comes with this Windows. I do not recommend it. Has a table with the versions that come along with Windows.

Note that there are other implementations of CLR. Has Mono, has . NET for other device types, has the .NET Core and even the .NET Native. For Winforms the ideal is to use the . NET Framework "normal".

In addition to Winforms you can use WPF and UWP (the latter can be used as the .NET Core that doesn’t need any installation). Now everyone can run on . NET Core.

Each has its advantages and disadvantages. None is more certain. It depends on your need. All of them can still be used, even if there is no evolution, are still officially supported.

3

As a developer(a), the least you should know is the target (target) for which the project will be built. Establish yourself(a) the requirements.

The most obvious is to provide compatibiliadde for the latest versions and with more users to the environment where you want to distribute the application. In general, currently the target may be from Windows 7. If it "works" under Windows7, it is likely that it will "work well" under Windows 10, for example, depending on the features you use. Usually the IDE you use asks you to define a target (build target)

Basic steps in MSDN documentation: https://msdn.microsoft.com/en-us/library/ms185328.aspx

Browser other questions tagged

You are not signed in. Login or sign up in order to post.