Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does .Net Standard Library supports Windows7 WPF Application?

Tags:

c#

.net

.net-core

I am planning to write a cross-platform library that should run on Xamarin, UWP and WPF application targeting Windows 7? From the docs (https://docs.microsoft.com/en-us/dotnet/standard/net-standard) Windows7 was never mentioned. Does that mean I can't use my library in Windows7 even though WPF application is built on the latest .Net framework (4.6)? Does that mean there is an OS dependency also in addition to .Net framework?

thanks !

like image 572
DevMonk Avatar asked Sep 16 '17 00:09

DevMonk


People also ask

Does .NET 6.0 support WPF?

NET 5/6+ gives us an updated version of Windows Presentation Foundation (WPF). Unlike Web Forms or the Windows Communication Foundation (WCF), Microsoft brought this . NET Framework technology into .

Does .NET 5 support WPF?

It has support for all kinds of . NET applications, including the Windows desktop platforms such as WPF, Windows Forms, and WinUI 3.0.

Is WPF available in .NET Core?

WPF is a . NET Core UI framework for building Windows desktop applications.


1 Answers

You can use your library in .NET Framework project. But if you will use .NET Framework 4.6 max you cannot use versions of .NET Standard above 1.3. If you target your library to higher version of .NET Standard it will be impossible to run/compile app at machine with .NET Framework 4.6.

Microsoft says (its from your link):

In general, we recommend you to target the lowest version of .NET Standard possible.

but older version of .NET Standard have a poorer collection of methods and packages.

So it is possible if you target .NET Standard in version 1.3 or below.

like image 120
Tomasz Żmuda Avatar answered Sep 20 '22 03:09

Tomasz Żmuda