95946d2e7f
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
|
||
---|---|---|
.github | ||
.vscode | ||
Documentation | ||
Localize | ||
build-tools | ||
eng | ||
external | ||
samples | ||
src | ||
src-ThirdParty | ||
tests | ||
tools | ||
.editorconfig | ||
.external | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.lgtm.yml | ||
Configuration.Override.props.in | ||
Configuration.props | ||
Directory.Build.props | ||
Directory.Build.targets | ||
LICENSE | ||
Makefile | ||
NuGet.config | ||
README.md | ||
SECURITY.md | ||
ThirdPartyNotices.txt | ||
Xamarin.Android-Tests.sln | ||
Xamarin.Android.BootstrapTasks.sln | ||
Xamarin.Android.Build.Tasks.sln | ||
Xamarin.Android.code-workspace | ||
Xamarin.Android.sln | ||
before.Xamarin.Android.sln.targets | ||
build.cmd | ||
build.sh | ||
dotnet-local.cmd | ||
dotnet-local.sh | ||
global.json | ||
mono.snk | ||
msfinal.pub | ||
product.snk |
README.md
.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 Ubuntu |
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* |
* 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:
- How to build and run from source
- The development workflow, and using your build
- Coding Guidelines
- Submitting pull requests
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
- Ask a question on Stack Overflow or Microsoft Q&A.
- Request a new feature or vote for popular feature requests on Microsoft Developer Community.
- File an issue in GitHub Issues.
- Discuss development and design on Discord.
License
Copyright (c) .NET Foundation Contributors. All rights reserved. Licensed under the MIT License.