Skip to content

Conversation

davidnguyen-tech
Copy link
Member

@davidnguyen-tech davidnguyen-tech commented Jul 17, 2025

Description

  • Add PredefinedCulturesOnly support by passing it as an environment variable at MSBuild level. This feature is intended to work together with InvariantGlobalization
  • Pass InvariantGlobalization as an environment variable at MSBuild level, instead of as a property for a cleaner approach.
  • All 397 tests in Invariant.Tests.csproj fully pass with none skipped/ignored.

Related issues

@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 09:41
Copilot

This comment was marked as outdated.

@davidnguyen-tech
Copy link
Member Author

/azp run runtime-android,runtime-androidemulator

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Contributor

Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

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.

Thanks!

Do we need to enable the tests explicitly or do they just work now?

@davidnguyen-tech
Copy link
Member Author

davidnguyen-tech commented Jul 17, 2025

The tests should be already enabled since my initial PR, where I removed the test project exclusion in tests.proj. Glad to help!

@kotlarmilos kotlarmilos self-requested a review July 17, 2025 13:39
@davidnguyen-tech
Copy link
Member Author

/azp run runtime-android,runtime-androidemulator

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@davidnguyen-tech davidnguyen-tech requested a review from Copilot July 18, 2025 12:20
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves InvariantGlobalization support for CoreCLR Android by refactoring how globalization settings are passed to the AndroidAppBuilder. The key change is moving from hardcoded property-based configuration to a more flexible environment variable approach that supports both InvariantGlobalization and the new PredefinedCulturesOnly feature.

  • Removes the InvariantGlobalization property from AndroidAppBuilder and replaces it with environment variable configuration
  • Adds support for PredefinedCulturesOnly feature through environment variables
  • Centralizes Android environment variable configuration in AndroidBuild.props

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/mono/msbuild/android/build/AndroidBuild.props Adds ItemGroup defining Android environment variables for globalization features
src/mono/msbuild/android/build/AndroidBuild.targets Removes InvariantGlobalization property from AndroidAppBuilderTask
src/tasks/AndroidAppBuilder/AndroidAppBuilder.cs Removes InvariantGlobalization property and assignment from main task class
src/tasks/AndroidAppBuilder/ApkBuilder.cs Removes InvariantGlobalization property and hardcoded environment variable setting
src/tests/build.proj Adds EnvironmentVariables parameter and removes InvariantGlobalization property from AndroidAppBuilderTask

@davidnguyen-tech
Copy link
Member Author

/ba-g Infrasctructure issue and irrelevant platforms.

@davidnguyen-tech davidnguyen-tech merged commit 88f2361 into dotnet:main Jul 21, 2025
156 of 172 checks passed
@davidnguyen-tech davidnguyen-tech deleted the issue-117270 branch August 13, 2025 11:22
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2025
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.

[Android] Invariant.Tests.csproj is failing on CoreCLR Android

4 participants