Skip to content

[release/10.0.1xx-preview3] [Mono.Android] prefix Microsoft.Android.Runtime namespace with _ #9998

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

Conversation

jonathanpeppers
Copy link
Member

We introduced a new internal type in Mono.Android.dll:

namespace Microsoft.Android.Runtime;

class ManagedValueManager : JniRuntime.JniValueManager

Causes various C# compiler errors in dotnet/maui:

D:\src\maui\src\Essentials\src\AppActions\AppActions.shared.cs(62,28):
error CS0234: The type or namespace name 'Content' does not exist in the namespace 'Microsoft.Android' (are you missing an assembly reference?)

To fix this, we can prefix the namespace with _. We basically can never use a Microsoft.Android.* namespace in Mono.Android.dll.

…Runtime` namespace with `_`

We introduced a new `internal` type in `Mono.Android.dll`:

    namespace Microsoft.Android.Runtime;

    class ManagedValueManager : JniRuntime.JniValueManager

Causes various C# compiler errors in dotnet/maui:

    D:\src\maui\src\Essentials\src\AppActions\AppActions.shared.cs(62,28):
    error CS0234: The type or namespace name 'Content' does not exist in the namespace 'Microsoft.Android' (are you missing an assembly reference?)

To fix this, we can prefix the namespace with `_`. We basically can
never use a `Microsoft.Android.*` namespace in `Mono.Android.dll`.
@jonathanpeppers
Copy link
Member Author

WearOS 2 failed with:

Async Command End: Publish test results
##[error]Service Unavailable

But the tests passed, so we can ignore this one.

@jonpryor jonpryor enabled auto-merge (squash) April 2, 2025 18:19
@jonpryor jonpryor disabled auto-merge April 2, 2025 18:19
@jonpryor jonpryor merged commit e0dedea into release/10.0.1xx-preview3 Apr 2, 2025
55 of 58 checks passed
@jonpryor jonpryor deleted the dev/peppers/release-Microsoft.Android.Runtime branch April 2, 2025 18:19
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants