Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Diagnostic code · ARA0505

Native interop

A module tries to invoke native code directly or uses a disallowed interop API. Native interop belongs in the engine, including for editor modules. The edit is rejected; the last good code keeps running.

Common causes

  • Declaring extern methods or applying DllImport or LibraryImport.
  • Calling Marshal, native-library loading or other interop APIs outside the permitted layout and memory helpers.

Fixes

  • Call the corresponding Ara API instead of invoking native functions from the module.

  • Implement missing native integration in the engine and expose it through the generated, checked ABI.

  • Code: ARA0505

  • Constant: cs::API_INTEROP

  • Reported by: Ara.Analyzers