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

Fall back to TerminalApp.dll's version when we're unpackaged #5274

Merged
merged 6 commits into from
Apr 9, 2020

Conversation

DHowett-MSFT
Copy link
Contributor

Summary of the Pull Request

This pull request makes sure we still get a usable (for troubleshooting purposes) version number in the about dialog and settings file when the user is running unpackaged.

image

image

I've had this laying around since I reworked the about dialog.

PR Checklist

  • Closes nothing.
  • work here
  • Tests added/passed
  • Requires documentation to be updated
  • work here!

Detailed Description of the Pull Request / Additional comments

The code looks hairy, and we could pull it out into a helper. It's straightforward except for the magic LCID constant.

The story behind that constant: by default, Package ES emits version resource information that says we're localized to ... language zero.
It also emits a language-coded version block for 0x0409 (en-US).

These two things cannot both be true.

@zadjii-msft zadjii-msft added the Product-Terminal The new Windows Terminal. label Apr 8, 2020
Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

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

This is magic 🧙‍♂️

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

sure why not

@DHowett-MSFT DHowett-MSFT merged commit a099897 into master Apr 9, 2020
@DHowett-MSFT DHowett-MSFT deleted the dev/duhowett/aboutbox_extra_credit branch April 9, 2020 22:59
@ghost
Copy link

ghost commented Apr 22, 2020

🎉Windows Terminal Preview v0.11.1121.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants