Xamarin.Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
Перейти к файлу
Jonathan Peppers 95946d2e7f
[tests] set `$(DisableTransitiveFrameworkReferenceDownloads)` (#8374)
Context: https://github.com/xamarin/xamarin-android/pull/8360

MSBuild tests that use `net7.0-android` `TargetFrameworks` can fail
on release branches with:

    (Restore target) ->
    error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 7.0.12)
    error NU1102:   - Found 1621 version(s) in dotnet7 [ Nearest version: 7.0.0-rtm.22513.3 ]
    error NU1102:   - Found 1537 version(s) in dotnet8 [ Nearest version: 8.0.0-alpha.1.22416.11 ]
    error NU1102:   - Found 87 version(s) in testsource1 [ Nearest version: 8.0.0-preview.1.23112.2 ]
    error NU1102:   - Found 87 version(s) in dotnet-public [ Nearest version: 8.0.0-preview.1.23112.2 ]
    error NU1102:   - Found 0 version(s) in darc-pub-dotnet-emsdk-9506882
    error NU1102:   - Found 0 version(s) in darc-pub-dotnet-runtime-26e0f82
    error NU1102:   - Found 0 version(s) in darc-pub-dotnet-runtime-301ba1e
    error NU1102:   - Found 0 version(s) in dotnet-eng
    error NU1102:   - Found 0 version(s) in dotnet8-transport
    error NU1102:   - Found 0 version(s) in xamarin.android util
        0 Warning(s)
        1 Error(s)

To solve this, we can set `$(DisableTransitiveFrameworkReferenceDownloads)`
as we did in 2320e204 so it doesn't try to restore ASP.NET or Windows
Desktop packs.

The MSBuild integration tests have their own `Directory.Build.props`, so
this seems like a reasonable place to set this value.
2023-09-26 16:44:20 -05:00
.github [ci] use GitOps.ResourceManagement, as FabricBot is decommissioned (#8173) 2023-07-31 14:47:59 -04:00
.vscode [.vscode] use net7.0-android (#7268) 2022-09-07 12:09:50 -04:00
Documentation [Xamarin.Android.Build.Tasks] Add `RunWithLogging` target (#8324) 2023-09-21 17:49:11 -04:00
Localize LEGO: Merge pull request 8355 2023-09-20 03:36:15 -07:00
build-tools [ci] Use Python 3 for signing tasks (#8367) 2023-09-22 14:59:11 -05:00
eng Bump to dotnet/installer/release/8.0.1xx@e1fd7d9649 8.0.100-rc.2.23468.1 (#8330) 2023-09-18 10:19:50 -05:00
external Bump to xamarin/Java.Interop/main@75d8221 (#8336) 2023-09-21 17:29:18 -04:00
samples [Xamarin.Android.Build.Tasks] AutoImport `*.webp` files (#7601) 2022-12-13 07:58:23 -05:00
src [tests] set `$(DisableTransitiveFrameworkReferenceDownloads)` (#8374) 2023-09-26 16:44:20 -05:00
src-ThirdParty [lgtm] Fix LGTM-reported issues (#1074) 2023-02-14 08:08:29 -05:00
tests Bump NDK to r26 (#8213) 2023-09-21 17:25:53 -04:00
tools Convert `/tools` and `/build-tools` projects from `net472` to `$(DotNetStableTargetFramework)` (#7943) 2023-04-12 14:10:39 -05:00
.editorconfig [monodroid] Add native code static checkers and sanitizers (#5094) 2020-10-13 16:01:41 -04:00
.external Bump to xamarin/monodroid/main@e57630bd (#8371) 2023-09-26 08:54:31 -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 [Xamarin.Android.Build.Tasks] stop redistributing `apksigner` (#7984) 2023-04-24 12:53:23 -05: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-34 (#8116) 2023-06-26 19:54:45 -04:00
Configuration.props Bump to 33.0.95 $(AndroidNet7Version) (#8351) 2023-09-19 11:50:06 -05:00
Directory.Build.props $(AndroidPackVersionSuffix)=preview.1; net9 is 34.99.0.preview.1 (#8362) 2023-09-22 14:27:34 -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 Remove more xabuild (#8263) 2023-08-14 15:48:43 -04:00
NuGet.config Bump to dotnet/installer/main@56d8c6497c 8.0.100-rc.2.23422.31 (#8291) 2023-08-25 11:18:38 -05:00
README.md [readme] Add aka.ms links for d17.5. (#7935) 2023-04-03 13:05:38 -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 [ci] Parallelize and reduce overhead of MSBuild test stage. (#7850) 2023-03-10 12:12:46 -06: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 [Xamarin.Android.Build.Tasks] remove Xamarin.Android.Legacy.targets and friends (#7985) 2023-04-24 16:23:09 -05:00
before.Xamarin.Android.sln.targets [build] fix for case-sensitive file systems (#5381) 2020-12-08 10:25:25 -05:00
build.cmd Remove more xabuild (#8263) 2023-08-14 15:48:43 -04:00
build.sh [build] Update VSCode Support (#5987) 2021-07-08 13:27:40 -04:00
dotnet-local.cmd dotnet-local & net8: local dotnet first in PATH (#8222) 2023-08-12 06:50:58 -04:00
dotnet-local.sh dotnet-local & net8: local dotnet first in PATH (#8222) 2023-08-12 06:50:58 -04: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.2 (d17-5) for Windows+Visual Studio 2022 Download
Commercial Xamarin.Android 13.2 (d17-5) 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.