简体   繁体   中英

Ui for .net core 2.x

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.

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

  1. Performance improvements and other runtime updates that will delight your users
  2. Super easy to use or test a new version of .NET Core for just one app on a machine
  3. Enables both machine-global and application-local deployment
  4. Support for the .NET Core CLI tools and SDK-style projects in Visual Studio

    you can find more in this link

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

I decided to port my .net core 2.1 over to .net standard and now I can build a UI with UWP. UWP at the moment targets .net Standard 2.0 so will,work. I had to import some code using nuget as there was a problem with my use of Dynamic type with Cosmosdb but all working now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM