Skip to content

Conversation

@akoeplinger
Copy link
Member

Backport of #98552 to release/8.0-staging

/cc @MichalStrehovsky

Customer Impact

The fi_FI culture uses U+2212 : MINUS SIGN instead of - for negative numbers which trips up msbuild when comparing a property in NativeAOT targets. This means that using PublishAot doesn't work in that culture.

Regression

  • Yes
  • No

This was introduced in .NET 8 in b969271.

Testing

Tested manually by running LANG=fi_FI dotnet publish /p:PublishAot=true and observing that the msbuild error no longer happens.

Risk

Low. This is replacing one way of doing string manipulation with a different one.

This culture uses `U+2212 : MINUS SIGN` instead of `-` for negative numbers which trips up msbuild when comparing the property.
Instead of using an intermediate property just inline the usage and use `Contains()` for better readability.

Fixes dotnet#98550

(cherry picked from commit c768315)
@ghost
Copy link

ghost commented Feb 17, 2024

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #98552 to release/8.0-staging

/cc @MichalStrehovsky

Customer Impact

The fi_FI culture uses U+2212 : MINUS SIGN instead of - for negative numbers which trips up msbuild when comparing a property in NativeAOT targets. This means that using PublishAot doesn't work in that culture.

Regression

  • Yes
  • No

This was introduced in .NET 8 in b969271.

Testing

Tested manually by running LANG=fi_FI dotnet publish /p:PublishAot=true and observing that the msbuild error no longer happens.

Risk

Low. This is replacing one way of doing string manipulation with a different one.

Author: akoeplinger
Assignees: akoeplinger
Labels:

area-NativeAOT-coreclr

Milestone: -

@akoeplinger akoeplinger added the Servicing-consider Issue for next servicing release review label Feb 17, 2024
@akoeplinger akoeplinger added this to the 8.0.x milestone Feb 17, 2024
@akoeplinger
Copy link
Member Author

Approved by tactics over email.

@akoeplinger akoeplinger added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 20, 2024
@akoeplinger akoeplinger merged commit fe2ea4e into dotnet:release/8.0-staging Feb 20, 2024
@akoeplinger akoeplinger deleted the backport-98552 branch February 20, 2024 09:20
@akoeplinger akoeplinger modified the milestones: 8.0.x, 8.0.3 Feb 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-NativeAOT-coreclr Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants