Skip to content

Conversation

@elinor-fung
Copy link
Member

The test validates that single-file probing is able to find its embedded resource assemblies. It is currently relying on running chcp to set the code page to UTF8 before launching the single-file app - which doesn't seem to always work (I'm not sure why - maybe something else sets it in between). We could have the app explicitly set the Console.Output.Encoding and then have the test set the ProcessStartInfo.StandardOutputEncoding, but the encoding is irrelevant to the actual test, so I figured it would just be noise and instead we'd avoid depending on it by switching the values in the resource to be ASCII.

FIxes #85993

@elinor-fung elinor-fung requested a review from vitek-karas June 6, 2023 15:51
@ghost ghost added the area-Single-File label Jun 6, 2023
@ghost ghost assigned elinor-fung Jun 6, 2023
@ghost
Copy link

ghost commented Jun 6, 2023

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

Issue Details

The test validates that single-file probing is able to find its embedded resource assemblies. It is currently relying on running chcp to set the code page to UTF8 before launching the single-file app - which doesn't seem to always work (I'm not sure why - maybe something else sets it in between). We could have the app explicitly set the Console.Output.Encoding and then have the test set the ProcessStartInfo.StandardOutputEncoding, but the encoding is irrelevant to the actual test, so I figured it would just be noise and instead we'd avoid depending on it by switching the values in the resource to be ASCII.

FIxes #85993

Author: elinor-fung
Assignees: elinor-fung
Labels:

area-Single-File

Milestone: -

Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

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

Nice - thanks!

@elinor-fung elinor-fung merged commit 22c16ca into dotnet:main Jun 7, 2023
@elinor-fung elinor-fung deleted the localizedAppTest branch June 7, 2023 14:09
@ghost ghost locked as resolved and limited conversation to collaborators Jul 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppHost.Bundle.Tests.BundleLocalizedApp.Bundled_Localized_App_Run_Succeeds failing

2 participants