Skip to content

Conversation

agocke
Copy link
Member

@agocke agocke commented Oct 6, 2021

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-karas and 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)
@ghost ghost added the area-Single-File label Oct 6, 2021
@ghost
Copy link

ghost commented Oct 6, 2021

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: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

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.

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

Labels

area-Single-File Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants