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

Add required --locale option to BuildHost #74910

Merged
merged 4 commits into from
Oct 3, 2024

Conversation

JoeRobich
Copy link
Member

When invoking the BuildHost pass along the CurrentUICulture.Name. This will allow reported exceptions to match the language of the process which is using the MSBuildWorkspace.

Resolves #74902

@JoeRobich JoeRobich requested a review from a team as a code owner August 27, 2024 06:08
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 27, 2024
Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

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

Code looks good; can we add a test somehow?

src/Workspaces/Core/MSBuild.BuildHost/Program.cs Outdated Show resolved Hide resolved
{
CultureInfo.CurrentUICulture = CultureInfo.GetCultureInfo(locale);
}
catch (CultureNotFoundException)
Copy link
Member

Choose a reason for hiding this comment

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

I absolutely expect this check is needed, since the locale here might cross between .NET Core and .NET Framework (and in both directions), so best to be careful here.

@JoeRobich
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build host should localize message output
3 participants