XPO - .NET Core 3.0 Desktop SDK Support for WinForms and WPF Apps

XPO Team Blog
30 July 2019

In late 2018, we announced .NET Core 3.0 support for WinForms and WPF apps with the new desktop SDK (Microsoft.NET.Sdk.WindowsDesktop). As of July 2019, we have completed all unit tests for XPO v19.2 for both WinForms and WPF .NET Core 3.0 apps. We will also migrate these changes to v19.1.

Distribution via Nuget

XPO for .NET Core 3.0 WinForms and WPF apps can be added using the DevExpress.WindowsDesktop.* packages from the DevExpress Nuget:

  • DevExpress.WindowsDesktop.Core
  • DevExpress.WindowsDesktop.Win
  • DevExpress.WindowsDesktop.Wpf
  • DevExpress.WindowsDesktop.Xaf 

Updated early access preview feeds should be available sometime in August.

Platform Limitations

At present, the .NET Core 3.0-based version of XPO has the following limitations (these limitations are dictated by the target framework and other factors):

  • ImageValueConverter. To workaround this limitation, change your image property declaration from System.Drawing.Image to byte[] (example).
  • XpoDefault helper methods that allow you to create WCF data store clients from connection strings. This is also true for the .NET Standard 2.0 version of XPO - we cannot add dependencies to System.ServiceModel.Http and other Nuget packages (T736928).
  • Database vendor limitation for .NET Core 3.0. For instance, the newest version of System.Data.SqlClient does not support SQL Server 2000.
  • More difficult code sharing if you create core libraries with the DevExpress.Data or DevExpress.Xpo assemblies. You may need to create 2 *.csproj files: one for .NET Core 3.0 desktop apps and the other for .NET Standard 2.0 cross-platform apps.

Love XPO and want to help us promote it? Add the package through Nuget.org instead of DevExpress Nuget!

4 comment(s)
Manuel Grundner [DevExpress MVP]
Manuel Grundner [DevExpress MVP]
Awesome work! 
31 July, 2019
Dennis (DevExpress)
Dennis (DevExpress)
Thank you!
2 August, 2019
Customer102074
Customer102074

NullReferenceException is occurred when DevExpress.StockMarketTrader sample is running.

3 October, 2019
Anatol (DevExpress Support)
Anatol (DevExpress Support)

@Customer102074: I can see that you are using DevExpress.WindowsDesktop packages v19.1.3 that were published for a preview version of .NET Core 3.0. To use the released .NET Core 3.0, install the most recent DevExpress version - 19.1.6, as described in the following blog post: .NET Core 3.0 Support for ASP.NET Core, WinForms, and WPF Controls.

See additional information about the issue in the following ticket: WinForms doesn't work with .Net Core 3 Preview 8

4 October, 2019

Please login or register to post comments.