dotnet --info)winver)Problem description:
Can the wpf project (not self-contained) run on a .net core runtime machine? The error message "Microsoft.WindowsDesktop.App could not be found" can only install .net core sdk?
Actual behavior:
Expected behavior:
Minimal repro:
Thanks, @okman523. To make sure I understand correctly, the problem is that a .NET core WPF application that targets a shared installation of the .NET core SDK fails at runtime? Is that correct?
@ryalanms No, actually, what I want to ask is that a machine with .net core runtimes seems to be unable to run the wpf program. Since Microsoft.WindowsDesktop.App is not included, is it necessary to install .net core sdk to run wpf?
I'm having the same issue. It seems that the runtime installer does not add the Microsoft.WindowsDesktop.App runtime. So you can't run a WPF app.
The (sad) solution was to install the SDK. I suppose the final version of the runtime will include WPF support.
I have the same problem using 3.0.0-preview8
This was already resolved (dotnet/core-setup#6384), there's supposed to be a separate bundle for the WindowsDesktop runtime in preview9, there are some download links in the PR (dotnet/core-setup#7764)
Note that with the above installer, you have to install both the .NET Core Runtime and Windows Desktop Runtime installers. But there are plans for an installer that combines .NET Core + WindowsDesktop (and x86 + x64) to make it easier to set up a machine: https://github.com/dotnet/core-setup/issues/7763.