Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This error indicates that the project selects the Mono runtime (the UseMonoRuntime property is set to true) for a mobile target platform while targeting .NET 11.0 or later, where the Mono runtime is no longer supported for that platform. The full error message is similar to the following example:
NETSDK1242: Building ios projects with the Mono runtime is not supported in .NET 11.0 and later. Use the CoreCLR runtime or target .NET 10.0.
The error applies to the android, ios, maccatalyst, and tvos target platforms.
Resolve the error
Choose one of the following options:
- Build the project with the CoreCLR runtime. Remove the
UseMonoRuntimeproperty from the project, or set it tofalse. - If the project requires the Mono runtime, target .NET 10. Change the target framework to a .NET 10 mobile target framework moniker, for example
net10.0-androidornet10.0-ios