Xamarin.Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
Перейти к файлу
Marek Habersack 54707652f7
[tests] Fix recently added AndroidMessageHandler test (#7859)
Context: 5d46685050
Context: 7b2e172829

Commit 5d466850 -- via [7b2e17][0] -- added usage of the NUnit3
[`RetryAttribute`][1] to some of our on-device unit tests.
Unfortunately, `RetryAttribute` doesn't exist in NUnitLite, resulting
in build failures such as:

	…/tests/Mono.Android-Tests/Xamarin.Android.Net/AndroidMessageHandlerTests.cs(42,4):
	error CS0246: The type or namespace name 'RetryAttribute' could not be found (are you missing a using directive or an assembly reference?)

Oops.

This failure wasn't caught because we've trained ourselves to
partially ignore various failures in the **Tests** tab  -- networking
is hard, mkay? -- but completely missed the *compilation* failures,
which don't appear in the **Tests** tab and are harder to see.

Double oops.

Update `AndroidMessageHandlerTests.cs` to remove usage of `[Retry]`
and instead retry things "manually"

[0]: 7b2e172829
[1]: https://docs.nunit.org/articles/nunit/writing-tests/attributes/retry.html
2023-03-06 15:23:37 -05:00
.github [Actions] Add action to bump the hash used for the unified pipeline (#7712) 2023-01-19 14:03:25 -05:00
.vscode [.vscode] use net7.0-android (#7268) 2022-09-07 12:09:50 -04:00
Documentation [Xamarin.Android.Build.Tasks] Remove support for mkbundle (#7772) 2023-02-28 14:09:50 -05:00
Localize LEGO: Merge pull request 7852 2023-03-03 03:37:20 -08:00
build-tools [ci] Reduce overhead for MSBuildIntegration unit test jobs. (#7832) 2023-03-02 16:30:14 -06:00
eng [build] remove darc dependency for System.IO.Hashing (#7855) 2023-03-06 12:25:51 -06:00
external [Xamarin.Android.Build.Tasks] `unable to open file as zip archive`? (#7759) 2023-02-28 12:30:07 -05:00
samples [Xamarin.Android.Build.Tasks] AutoImport `*.webp` files (#7601) 2022-12-13 07:58:23 -05:00
src Localized file check-in by OneLocBuild Task (#7851) 2023-03-06 10:07:54 -06:00
src-ThirdParty [lgtm] Fix LGTM-reported issues (#1074) 2023-02-14 08:08:29 -05:00
tests [tests] Fix recently added AndroidMessageHandler test (#7859) 2023-03-06 15:23:37 -05:00
tools Fix reading assembly store hashes in AssemblyStoreReader 2022-11-30 10:15:29 +00:00
.editorconfig [monodroid] Add native code static checkers and sanitizers (#5094) 2020-10-13 16:01:41 -04:00
.external [Xamarin.Android.Build.Tasks] `unable to open file as zip archive`? (#7759) 2023-02-28 12:30:07 -05:00
.gitattributes [Xamarin.Android.Build.Tasks] Move XA4214 warning text into .resx file (#3900) 2019-12-07 13:58:58 -05:00
.gitignore [ci] Fix test categories for emu smoke tests (#7374) 2022-09-14 20:35:14 -04:00
.gitmodules Bump to xamarin/android-api-docs/main@5c4bf28f (#7099) 2022-06-15 15:21:49 -04:00
.lgtm.yml [lgtm] Fix LGTM-reported issues (#1074) 2023-02-14 08:08:29 -05:00
Configuration.Override.props.in [Mono.Android] Bind and enumify API-33 (#7105) 2022-06-28 12:49:19 -04:00
Configuration.props [ci] Reduce overhead for MSBuildIntegration unit test jobs. (#7832) 2023-03-02 16:30:14 -06:00
Directory.Build.props $(AndroidPackVersionSuffix)=preview.3; net8 is 34.0.0-preview.3 (#7839) 2023-02-28 18:35:01 -05:00
Directory.Build.targets Bump to xamarin/xamarin-android-tools/main@fa3711b (#7501) 2022-11-18 08:13:00 -05:00
LICENSE [build] ThirdPartyNotices.txt support (#464) 2018-03-02 09:54:35 -05:00
Makefile [build] `make all` doesn't need `-m:1` (#7589) 2022-11-30 12:34:37 -05:00
NuGet.config Bump to dotnet/installer/main@632ddca 8.0.100-preview.3.23128.1 (#7836) 2023-03-03 21:36:21 -06:00
README.md [README] Add links to Xamarin.Android 13.1 release installers (#7547) 2022-11-09 10:50:20 -05:00
SECURITY.md Add SECURITY.md (#5956) 2021-05-24 15:48:07 -04:00
ThirdPartyNotices.txt [monodroid] Build the Xamarin.Android runtime for net6 (#5665) 2021-03-02 22:01:01 -05:00
Xamarin.Android-Tests.sln [Xamarin.Android.Build.Tasks] Remove support for mkbundle (#7772) 2023-02-28 14:09:50 -05:00
Xamarin.Android.BootstrapTasks.sln [build] improve Xamarin.Android.sln usability in VS Windows (#3877) 2019-11-12 11:37:20 +01:00
Xamarin.Android.Build.Tasks.sln [illink] Use latest illink (#5604) 2021-02-11 18:20:49 +01:00
Xamarin.Android.code-workspace [build] Update VSCode Support (#5987) 2021-07-08 13:27:40 -04:00
Xamarin.Android.sln Enable marshal methods support by default (#7351) 2022-10-10 17:04:47 -04:00
before.Xamarin.Android.sln.targets [build] fix for case-sensitive file systems (#5381) 2020-12-08 10:25:25 -05:00
build.cmd [build] Update 'build.cmd' to use 'dotnet build' (#7080) 2022-06-09 12:21:45 -04:00
build.sh [build] Update VSCode Support (#5987) 2021-07-08 13:27:40 -04:00
dotnet-local.cmd [build] Copy .NET build output to ref/runtime dirs (#7010) 2022-06-13 13:20:14 -04:00
dotnet-local.sh [build] Fix the `dotnet-local.sh` script path resolution (#7090) 2022-06-13 20:49:56 +00:00
global.json [One .NET] Target net6.0 instead of netcoreapp3.1 (#5891) 2021-04-30 09:27:12 -05:00
mono.snk [build] Remove Mono submodule (#3371) 2019-07-25 12:04:22 -04:00
msfinal.pub [build] Remove Mono submodule (#3371) 2019-07-25 12:04:22 -04:00
product.snk [Mono.Android, Mono.Android.Export] Sign assemblies. (#29) 2016-05-10 16:29:33 +01:00

README.md

.NET Android banner

.NET Android

.NET Android provides open-source bindings of the Android SDK and tooling for use with .NET managed languages such as C#. This ships as an optional .NET workload for .NET 6+ that can be updated independently from .NET in order to respond to external dependency updates like new Android platform and tooling.

While .NET Android is an essential part of MAUI, it is still fully supported to be used independently for native Android development using .NET.

This repository is also home to the classic Xamarin.Android product.

Support

.NET Android is now part of .NET 6+ and follows the same support lifecycle as the MAUI Support Lifecycle.

Support for classic Xamarin.Android will end on May 1, 2024 as per the Xamarin Support Policy:

Xamarin support will end on May 1, 2024 for all classic Xamarin SDKs. Android 13 will be the final version classic Xamarin.Android will target.

Build Status

Platform Status
OSS macOS OSS macOS x86_64
OSS Ubuntu OSS Linux/Ubuntu x86_64

Downloads

Current

.NET Android ships as a workload through the dotnet workload system in .NET 6+. See the workload documentation for installation commands.

Classic Xamarin.Android installers are available here:

Platform Link
Commercial Xamarin.Android 13.1 (d17-4) for Windows+Visual Studio 2022 Download
Commercial Xamarin.Android 13.1 (d17-4) for macOS Download
OSS Xamarin.Android (main) for Ubuntu* OSS Linux/Ubuntu x86_64

* Please note that the OSS installer packages are not digitally signed.

Previous Releases are also available for download.

Contributing

If you are interested in fixing issues and contributing directly to the code base, please see the following:

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.

Feedback

Discord

License

Copyright (c) .NET Foundation Contributors. All rights reserved. Licensed under the MIT License.