Skip to content

[skills] Add macios-binding-creator skill v1#24937

Merged
dalexsoto merged 2 commits intomainfrom
dev/alex/binding-skillv1
Mar 19, 2026
Merged

[skills] Add macios-binding-creator skill v1#24937
dalexsoto merged 2 commits intomainfrom
dev/alex/binding-skillv1

Conversation

@dalexsoto
Copy link
Member

No description provided.

@dalexsoto dalexsoto requested a review from rolfbjarne March 19, 2026 14:18
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Copy link
Member

@rolfbjarne rolfbjarne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a few minor things.

I'm not sure if it should be a different skill, but having Copilot write unit tests for "manual" APIs would also be nice.

// Custom result type — generates Task<FetchResult> FetchValuesAsync ()
[Export ("fetchMultipleValues:")]
[Async (ResultTypeName = "FetchResult")]
void FetchValues (Action<string, nint, NSError> completion);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use a custom delegate instead of Action (so that we can specify nullability).

[StructLayout (LayoutKind.Sequential)]
public struct MyStruct {
public nfloat X;
public nfloat Y;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should prefer private fields + public properties, instead of public fields, because then it becomes easier to fix the struct layout later on if we made a mistake (or Apple changes things)

```csharp
// Methods that take NSError**
[Export ("doSomething:")]
bool DoSomething (out NSError error);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool DoSomething (out NSError error);
bool DoSomething ([NullAllowed] out NSError error);

- **Selectors**: Must match exactly — a single typo causes runtime crashes.
- **Protocol conformance**: All `[Abstract]` methods in a protocol are required.
- **nint/nuint**: Use `nint`/`nuint` for Objective-C `NSInteger`/`NSUInteger`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Acronyms shouldn't be all uppercase (SIMD -> Simd, ID (when it means "identifier") -> Id, URL -> Url, etc.)
  • Methods should be verbs. Properties should be nouns.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto
Copy link
Member Author

Looks good! Just a few minor things.

I'm not sure if it should be a different skill, but having Copilot write unit tests for "manual" APIs would also be nice.

yeah this is just to bootstrap the skill it will definitely be updated as we find more things let's experiment more and figure out where to add it, I am leaning towards that be part of this workflow as well, once I run into it will do it.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #0a90f42] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 0a90f423a2096321ea705cc23102494c667fdf1f [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #0a90f42] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 0a90f423a2096321ea705cc23102494c667fdf1f [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 0a90f423a2096321ea705cc23102494c667fdf1f [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #0a90f42] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 0a90f423a2096321ea705cc23102494c667fdf1f [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build #0a90f42] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 156 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. [attempt 3] Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 15 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: 0a90f423a2096321ea705cc23102494c667fdf1f [PR build]

@dalexsoto dalexsoto merged commit bf58052 into main Mar 19, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants