CommunityToolkit / Maui.NativeLibraryInterop

Maui.NativeLibraryInterop is a community-created library of binding samples to help .NET MAUI developers interop with native libraries more easily
MIT License
179 stars 28 forks source link

Android Facebook project: `The type or namespace "FacebookSdk" does not exist in the namespace "Facebook"` #34

Closed BioTurboNick closed 3 months ago

BioTurboNick commented 4 months ago

I set up my environment, I built the Facebook.Android.Binding project in VS successfully, but then trying to build the sample project fails. The type or namespace "FacebookSdk" does not exist in the namespace "Facebook".

VS 17.10.3 on Windows 23H2

Two potentially relevant warnings: From BINDINGSGENERATOR: BG8601 - No '<package>' elements found. From Metadata.xml: BG8A04 - Metadata.xml element '<attr path="/api/package[@name='com.microsoft.mauifacebok']" />' matched no nodes.

mikeparker104 commented 3 months ago

@BioTurboNick looks like the path in the Metadata.xml warning (com.microsoft.mauifacebok) doesn't match the value in the sample (com.microsoft.mauifacebook). Please can you confirm the path is correct?

BioTurboNick commented 3 months ago

...oh lol.

Thank you.

EDIT: Actually not sure that was the issue because my Metadata.xml seems to be correct... but I see the repo has vastly changed in the meantime so I'll start from scratch anyway.