D
D
Dmitry2018-07-05 15:15:18
C++ / C#
Dmitry, 2018-07-05 15:15:18

Do I need .NET installed to run the program?

Good afternoon. I want to write a small utility for adding the necessary routes. It is necessary to run on XP, 7, 8, 8.1, 10. Accordingly, it is clear that there are also old systems. How to make the written program run on all platforms, starting with XP?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Nemiro, 2018-07-05
@zmitrok62

For Windows XP , you need .NET Framework 4 , the above will no longer work.
With older versions of systems, problems should not arise.
https://docs.microsoft.com/en-us/dotnet/framework/...
Alternatively, you can make a multiplatform application, use new versions of .NET for new platforms , and write inserts for XP under .NET 4.0 . The code might not be very maintainable:

#if NET40
// код для .NET 4.0
#else
// код для остальных версий
#enif

If you do this, it's best to use .NET Core when possible .

V
Vladimir Proskurin, 2018-07-05
@Vlad_IT

Write on the .NET that comes with the necessary systems .
See here below the OS support plate https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D...
See here what are the default versions https://ru.wikipedia.org/wiki/.NET_Framework

#
#, 2018-07-05
@mindtester

Do I need .NET installed to run the program?
By the very wording, yes. you need to have the framework installed . but which one - it already depends on the system (but it seems that enough has already been said about this)
ps in the comments there is a hint that sometimes it’s not necessary

D
Dmitry, 2018-07-24
@zmitrok62

I chose .NET40 in Visual Studio, wrote a program, everything works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question