dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.92k stars 526 forks source link

Fix DSO name hash generation on Windows #9315

Open grendello opened 1 day ago

grendello commented 1 day ago

Fixes: https://github.com/dotnet/android/issues/9200

@jonpryor found that on Windows, shared library name hashes are generated using the Windows path separator character, while the runtime expects a Unix one. This discrepancy leads to different hashes for the same satellite assembly on Linux/macOS and Windows.

Fix by explicitly converting any \ characters in the satellite assembly name to / prior to hash generation.