.NET Core 3.0 Preview 4 and Microsoft.WindowsDesktop.App

Hi

I’m trying to use Microsoft.WindowsDesktop.App from .NET Core 3.0 Preview 4 for WinForms support in .NET Core. Here is test project : ClassLibrary.zip (7.6 KB)
After settings Microsoft.NetCore.App runtime references get updated with microsoft.netcore.app.ref NuGet package. But setting WindowsDesktop for Runtime or SDK doesn’t change References, like the package was not found.
I have installed both VS2019 and standalone Preview 4 packages. At C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\3.0.0-preview4-27615-11\ref\netcoreapp3.0 there are needed files (why packs?). How can I access this pack from Water ? Did anyone test Winforms in .Net Core 3 using Water ?

Artur

A partial solution is to install Microsoft.WindowsDesktop.App package manually from VS. After that the package shows in Water list and can be used.

Curious; “WindowsDesktop” is not a runtime i’ve seen before or added explicit support for (probably because it doesn’t show on Mac ;). I’ll have a look.

Yeah, thats probably what EBuild needs to do automatically. will fix.

Thanks, logged as bugs://82546

Yes, WindowsDesktop is for Windows only to run WinForms and WPF in .NET Core.

Fixed:

Adding implicit package reference to ‘Microsoft.WindowsDesktop.App:[3.0.0-preview5-27626-15]’.

bugs://82546 got closed with status fixed.