Search code examples
c#windowsairactionscript-3ane

How to build AIR Native Extension for Windows with C#?


I recently developed native extensions for mobile projects on Adobe AIR (Android and iOS).

I want to port these ANEs for desktop projects on Windows and OSX. The OSX part is not a problem because it uses the same mechanisms as for iOS. The problem is essentially on the Windows side.

Adobe AIR offers bridges to write the native part in C / C ++, I prefer to use C# to simplify the task and access more simply .NET libraries.

Has anyone ever heard of experiments or viable projects to code a native Adobe AIR extension with C#?

I have not found a complete solution to achieve this:

  • Create a DLL in C # including access to FlashRuntimeExtensions.h (C Header file)
  • Be able to use .NET libraries from this unique DLL
  • Produce only one DLL file
  • Do not use the flash.desktop.NativeProcess library

Thank you for your help or a different point of view on these issues.


Solution

  • A developer sent me this link to TUARUA's FreSharp GitHub page.

    It corresponds exactly to the subject of my question. I share it so that everyone can see how to create an ANE (AIR Native Extension) from C# under Windows.

    So I will be able to resume my development and port my libraries for desktop computers.

    Thanks to everyone.