xamarin / AndroidX

AndroidX bindings for .NET for Android
MIT License
181 stars 45 forks source link

[DO NOT MERGE] TFM net9.0 #850

Open moljac opened 7 months ago

moljac commented 7 months ago

Dogfooding net9.0 only TFM for AndroidX (AX) bindings.

It is to be determined if and when to merge. Thus DO-NOT-MERGE in title and label + draft status.

Some metadata had to be fixed. And some APIs have changed and this needs some investigation

GPS-FB-MLKit PR is Work in Progress (WIP).

Does this change any of the generated binding API's?

Probably. Not sure yet. There were some Metadata changes.

Describe your contribution

In May support for Xamarin.Classic (monoandroid12) and net6.0 will be dropped and this is recon PR to see what is ahead of the team.

moljac commented 7 months ago

Samples error

DotNetBuild           ./samples/dotnet/BuildAllMauiApp.sln / BuildAllMauiApp
MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
Restore complete (17,5s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  BuildAllMauiApp failed with errors (2,9s)
    /usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/34.99.0-preview.1.151/tools/Xamarin.Android.Common.targets(579,3): error XA1018: Specified AndroidManifest file does not exist: ./samples/dotnet/BuildAllMauiApp/AndroidManifest.xml. [./samples/dotnet/BuildAllMauiApp/BuildAllMauiApp.csproj]
dotnet build samples/dotnet/BuildAllMauiApp/BuildAllMauiApp.csproj
MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
Restore complete (14,9s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  BuildAllMauiApp failed with errors (1,4s)
    /usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/34.99.0-preview.1.151/tools/Xamarin.Android.Common.targets(579,3): error XA1018: Specified AndroidManifest file does not exist: ./samples/dotnet/BuildAllMauiApp/AndroidManifest.xml. [./samples/dotnet/BuildAllMauiApp/BuildAllMauiApp.csproj]
tree samples/dotnet/BuildAllMauiApp/
samples/dotnet/BuildAllMauiApp/
├── App.xaml
├── App.xaml.cs
├── AppShell.xaml
├── AppShell.xaml.cs
├── BuildAllMauiApp.csproj
├── MainPage.xaml
├── MainPage.xaml.cs
├── MauiProgram.cs
├── Platforms
│   ├── Android
│   │   ├── AndroidManifest.xml
│   │   ├── MainActivity.cs
│   │   ├── MainApplication.cs
│   │   └── Resources
│   │       └── values
│   │           └── colors.xml
│   ├── MacCatalyst
│   │   ├── AppDelegate.cs
│   │   ├── Info.plist
│   │   └── Program.cs
│   ├── Tizen
│   │   ├── Main.cs
│   │   └── tizen-manifest.xml
│   ├── Windows
│   │   ├── App.xaml
│   │   ├── App.xaml.cs
│   │   ├── Package.appxmanifest
│   │   └── app.manifest
│   └── iOS
│       ├── AppDelegate.cs
│       ├── Info.plist
│       └── Program.cs
└── Resources
    ├── AppIcon
    │   ├── appicon.svg
    │   └── appiconfg.svg
    ├── Fonts
    │   ├── OpenSans-Regular.ttf
    │   └── OpenSans-Semibold.ttf
    ├── Images
    │   └── dotnet_bot.svg
    ├── Raw
    │   └── AboutAssets.txt
    ├── Splash
    │   └── splash.svg
    └── Styles
        ├── Colors.xaml
        └── Styles.xaml

16 directories, 33 files