{"id":21570555,"url":"https://github.com/jcash/csharpextension","last_synced_at":"2025-03-18T06:14:19.361Z","repository":{"id":213076458,"uuid":"732956702","full_name":"JCash/csharpextension","owner":"JCash","description":"Using NativeAOT to interact with a C++ app","archived":false,"fork":false,"pushed_at":"2024-11-02T08:22:12.000Z","size":469,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T12:45:32.711Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JCash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-18T08:43:26.000Z","updated_at":"2024-12-13T11:24:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"c10fcbe6-0c7b-4284-b762-7fc90da47495","html_url":"https://github.com/JCash/csharpextension","commit_stats":null,"previous_names":["jcash/csharpextension"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCash%2Fcsharpextension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCash%2Fcsharpextension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCash%2Fcsharpextension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JCash%2Fcsharpextension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JCash","download_url":"https://codeload.github.com/JCash/csharpextension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166758,"owners_count":20409179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T11:13:07.013Z","updated_at":"2025-03-18T06:14:19.338Z","avatar_url":"https://github.com/JCash.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prerequisites\n\n* DotNet 9\n\n    brew install dotnet-sdk@preview\n\n## Install prerequisites\n\n    ./scripts/install_external.sh\n    ./scripts/compile_external.sh\n\n## Build\n\nmacOS\n\n    ./scripts/compile_external.sh macos\n    ./scripts/compile.sh\n\niOS\n\n    ./scripts/compile_external.sh ios\n    ./scripts/compile_ios.sh ios\n\n## Run\n\nmacOS\n\n    ./build/macos/test\n\n\n## Links\n\n* https://github.com/dotnet/samples/blob/main/core/nativeaot/NativeLibrary/README.md\n\n* https://learn.microsoft.com/en-gb/dotnet/core/deploying/native-aot/?tabs=net8plus%2Cwindows#limitations-of-native-aot-deployment\n\nAbout some limitations:\n* https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=net8plus%2Cwindows#limitations-of-native-aot-deployment\n* https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/\n\n* https://joeysenna.com/posts/nativeaot-in-c-plus-plus\n\n* https://github.com/Joey0x646576/nativeaot-to-cplusplus-example/blob/main/NativeAot/NativeDll/Library.cs\n\nMarshalling:\n* https://learn.microsoft.com/en-us/cpp/dotnet/using-cpp-interop-implicit-pinvoke?view=msvc-170#in-this-section\n\n* https://mark-borg.github.io/blog/2017/interop/\n\nShort example\n* https://ericsink.com/native_aot/mul_cpp_win_static.html\n\nCompile example:\n* https://github.com/ericsink/native-aot-samples/blob/main/mul_cpp_win_static/build.bat\n\nPlatform support:\n(experimental, apart from Desktop)\n\n* https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=net8plus%2Cwindows#platformarchitecture-restrictions\n\nHow to create a delegate from the C side, to call C# functions that takes delegates\n* https://github.com/ericsink/native-aot-samples/tree/main/delegate_i32\n\nSmolSharp\n* https://github.com/ascpixi/smolsharp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcash%2Fcsharpextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcash%2Fcsharpextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcash%2Fcsharpextension/lists"}