Edit

Share via


.NET for Android warning XA2000

A feature used by your Android app will disappear in a future .NET release.

Example messages

Use of AppDomain.CreateDomain() detected in assembly: {assembly}. .NET 6 will only support a single AppDomain, so this API will no longer be available in .NET for Android once .NET 6 is released.

Note: this error maps to IL6200 in .NET 6 and higher.

Support for the 'MONO_GC_PARAMS=bridge-implementation=old' value will be removed in .NET 7.

Solution

Migrate away from the feature being removed.

Transition code away from AppDomain.CreateDomain() to a different API, such as AssemblyLoadContext.

Transition code away from MONO_GC_PARAMS=bridge-implementation=old.