Skip to content

Conversation

@tarekgh
Copy link
Member

@tarekgh tarekgh commented Jul 1, 2021

We are changing the Invariant Globalization mode behavior in .NET 6.0 to force it to throw exception by default when creating non-Invariant cultures dotnet/runtime#54247. The behavior can be controlled by a config switch System.Globalization.PredefinedCulturesOnly that we need to support it through the SDK to have msbuild property.

@ghost
Copy link

ghost commented Jul 1, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@tarekgh tarekgh changed the title Inital Support for PredefinedCultureOnly property Initial Support for PredefinedCultureOnly property Jul 1, 2021
@tarekgh tarekgh force-pushed the PredefinedCulturesOnlySupport branch from aa93e39 to 4a14f98 Compare July 2, 2021 00:07
@tarekgh tarekgh marked this pull request as ready for review July 7, 2021 02:31
@tarekgh tarekgh force-pushed the PredefinedCulturesOnlySupport branch from 75b2eba to b5c39d3 Compare July 7, 2021 02:37
@tarekgh tarekgh requested review from dsplaisted and eerhardt July 7, 2021 02:42
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>

Copy link
Member

Choose a reason for hiding this comment

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

We should be setting the <PredefinedCulturesOnly> property in the top PropertyGroup of this file.

Copy link
Member Author

Choose a reason for hiding this comment

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

@dsplaisted I have returned back the changes in GivenThatWeWantToPublishAProjectWithAllFeatures.cs and TestApp as @eerhardt suggested to keep it to test the behavior when enabling the property in down-level version even if it will not have any runtime effect.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

:shipit:

@tarekgh
Copy link
Member Author

tarekgh commented Jul 8, 2021

@dsplaisted are we good to merge? or you have more comments?

@dsplaisted dsplaisted merged commit cd8654a into dotnet:main Jul 8, 2021
@dsplaisted
Copy link
Member

@tarekgh I've merged it

v-wuzhai pushed a commit that referenced this pull request Apr 22, 2024
ViktorHofer added a commit that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants