Is it possible to build a desktop UI for windows 10 that targets .net core 2.x or higher? I am running into problems. I have a class library targeting .net core 2.1.
And I would like to use the classes in that library within my windows 10 desktop app.
-
1Is there a reason your class library isn’t targeting .NET Standard?Kirk Larkin– Kirk Larkin2018-09-08 12:29:01 +00:00Commented Sep 8, 2018 at 12:29
3 Answers
No there is no support for desktop UI in .net core 2.1 it was not the priority
It will be available in .net core 3.0 which will be released in 2019
But you can use Avalonia UI which is in a beta version
BTW here are some improvements for desktop application when it will be released
- Performance improvements and other runtime updates that will delight your users
- Super easy to use or test a new version of .NET Core for just one app on a machine
- Enables both machine-global and application-local deployment
Support for the .NET Core CLI tools and SDK-style projects in Visual Studio
you can find more in this link
Comments
If you're not using .net standard library, you have an option to convert your class library to .net standard Convert .NET Core 2.0 class libraries to .NET Standard then use Universal Windows Platform (UWP) to build your ui. Windows Desktop App will be supported in .net core 3 next year.
.net standard: https://github.com/dotnet/standard