wpf icon indicating copy to clipboard operation
wpf copied to clipboard

Microsoft.WindowsDesktop.App could not be found

Open zepamble opened this issue 7 years ago • 6 comments

  • .NET Core Version: (e.g. 3.0 Preview1, or daily build number, use dotnet --info)
  • Windows version: (winver)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes/No

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:

zepamble avatar May 06 '19 10:05 zepamble

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 avatar May 07 '19 18:05 ryalanms

@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?

zepamble avatar May 08 '19 05:05 zepamble

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.

andrescirulo avatar Aug 04 '19 16:08 andrescirulo

I have the same problem using 3.0.0-preview8

b2soft avatar Aug 23 '19 16:08 b2soft

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)

weltkante avatar Aug 23 '19 16:08 weltkante

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.

dagood avatar Aug 26 '19 16:08 dagood