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

Initial Support for PredefinedCultureOnly property #18672

Merged
merged 15 commits into from
Jul 8, 2021

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.

@dotnet-issue-labeler
Copy link

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
@@ -59,7 +59,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<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
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
ViktorHofer added a commit that referenced this pull request May 7, 2024
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
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