S
S
skvoshiz2016-03-21 05:23:53
Programming
skvoshiz, 2016-03-21 05:23:53

How to write a program in .Net 4.5 for windows XP?

Hello, I am writing in c# wpf, some third-party libraries require the .net 4.5 version of the project.
But the previous program is used on Windows XP (21%)
Is it possible to somehow run the program with the .net 4.5 version on a computer where .net 4.0 can be installed as much as possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kovalsky, 2016-03-21
@dmitryKovalskiy

In a nutshell, it's impossible. Slightly longer - stackoverflow.com/questions/17499351/is-it-possibl... .
A potential solution is to encourage users to update the system. That the support of this operating system complicates and lengthens the process of developing and testing new features, and accordingly increases the cost of the product.

M
Maxim Kuznetsov, 2016-03-21
@max-kuznetsov

There are many options. Apparently, the old version already included components for .NET Framework 4. (1) Don't upgrade to new components just to support .NET 4.5, use older versions. Or (2) use the configuration to bind the correct version of the components. Or (3) make dynamic linking (by plugins, for example) depending on the OS you are using. Or (4) make an installer that will install versions of components that depend on the OS. (5) The components can be taken out into a separate software tool (service, console application), make such a tool specifically for XP, and use the edition either for Win7/8/10 or for XP... There are already 5 solutions. Not counting the forced transfer of users to Win7;)
In short, the problem is solved. But you have to sweat a little.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question