Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinForms .net core 3 app fails to find runtime for Desktop Apps #3782

Closed
mscrivo opened this issue Sep 28, 2019 · 2 comments
Closed

WinForms .net core 3 app fails to find runtime for Desktop Apps #3782

mscrivo opened this issue Sep 28, 2019 · 2 comments

Comments

@mscrivo
Copy link

mscrivo commented Sep 28, 2019

Steps to reproduce

Create a WinForms app that targets netcoreapp3.0 and build it.
Run it on a machine that only has the .net core 3 Desktop runtime installed.

Expected behavior

The app should run with the desktop runtimes installed.

Actual behavior

Observe that the app does not load, and you see this in the event viewer:

A .NET Core application failed.
Application: program.exe
Path: C:\Program Files (x86)\Program\program.exe
Message: It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0' was not found.

  • No frameworks were found.

You can resolve the problem by installing the specified framework and/or SDK.

The .NET Core frameworks can be found at:

Environment data

It works fine if you install the full SDK.

@dagood
Copy link
Member

dagood commented Sep 28, 2019

Did you install the .NET Core Runtime too? This banner on https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-3.0.0-windows-x64-desktop-runtime-installer is meant to let you know:

image

We don't have an installer for 3.0 that bundles both together (or both x86 and x64 together), more info about that at https://github.com/dotnet/core-setup/issues/7763.

@mscrivo
Copy link
Author

mscrivo commented Sep 28, 2019

I see, thank you.

@mscrivo mscrivo closed this as completed Sep 28, 2019
@msftgits msftgits transferred this issue from dotnet/core-setup Jan 30, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants