Skip to content

[release/6.0] Show error dialog in single-file app when runtime is missing - #60045

Merged
Anipik merged 2 commits into
dotnet:release/6.0from
agocke:single-file-dialog
Oct 7, 2021
Merged

[release/6.0] Show error dialog in single-file app when runtime is missing#60045
Anipik merged 2 commits into
dotnet:release/6.0from
agocke:single-file-dialog

Conversation

@agocke

@agockeagocke commented Oct 6, 2021

Copy link
Copy Markdown
Member

Description

Customer reported issue. Currently, when a GUI FX-dependent app on a machine without the appropriate runtime, it silently fails (and there is an error about bundle version mismatch in the Event Viewer). This is a regression from 5.0, where we display a dialog box with the error and version of the runtime needed.

This change fixes the regression by adding a small piece of code to interpret a generic failure and give a better error message. The change in failure message is due to updates to the bundle version which resulted in a generic failure instead of a specific one, and this change is the minimal fix needed for the problem.

Testing

Unit tests

Risk

Low.

vitek-karasand others added 2 commits October 5, 2021 17:17
…t#59929)
Show dialog when running .NET 6 GUI single-file on 5.0 hostfxr
(cherry picked from commit 2f76c08)
Co-authored-by: Elinor Fung <elfung@microsoft.com>
(cherry picked from commit 3d171f9)
@ghostghost added the area-Single-File label Oct 6, 2021
@ghost

ghost commented Oct 6, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

Description:

Fix regression in error reporting where a FX-dependent single-file bundle will not produce a dialog if the needed runtime is not present on the machine.

Testing: Unit tests

Risk: Low.

Author:agocke
Assignees:-
Labels:

area-Single-File

Milestone:-

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. We should take this for consideration in .NET 6.

@jeffschwMSFTjeffschwMSFT added the Servicing-approved Approved for servicing release label Oct 6, 2021
@jeffschwMSFTjeffschwMSFT added this to the 6.0.0 milestone Oct 6, 2021
@Anipik
Anipik merged commit 7d6c1ef into dotnet:release/6.0Oct 7, 2021
@ghostghost locked as resolved and limited conversation to collaborators Nov 6, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Servicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@agocke@jeffschwMSFT@vitek-karas@Anipik