dotnet / dotnet/android

Add way to customize AOT behavior for specific assemblies

Open
#6,779 1 comment 2 reactions 1 assignee Claimed by @jonathanpeppers View on GitHub
Area: App+Library Build possibly-stale
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 21h
Merged PRs (30d)
257

Description

### Android application type

Classic Xamarin.Android (MonoAndroid12.0, etc.), Android for .NET (net6.0-android, etc.)

### Affected platform version

Any

### Description

Two scenarios you can't do right now when using Profiled AOT:

1. Select specific assemblies to be full AOT'd no matter what
2. Select specific assemblies to not be AOT'd (or use the profile) related to: https://github.com/xamarin/xamarin-android/issues/6776

Right now we *always* full AOT the "main" app assembly, and it doesn't look like there is a way to opt out of that behavior.

### Steps to Reproduce

Build a Profiled AOT application and have a desire to customize what is AOT'd.

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.