-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document some examples in binding project template #8411
Comments
I agree that a Bind="false" example would help because it's not clear based on the documentation that the equivalent of Xamarin's "EmbeddedReferenceJar" is AndroidLibrary with Bind="false". I feel it would also be beneficial to add a table on the migration page that shows the equivalent Build Action for MAUI binding when migrating from Xamarin to MAUI: |
Context: https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/OneDotNetEmbeddedResources.md Context: dotnet/android#8411 I had some feedback from customers that it would be helpful to include a table of the old item group names and what to do going forward.
Thanks, I updated that docs page here: dotnet/docs-maui#1916 |
Fixes: dotnet#8411 Context: dotnet/docs-maui#1916 We have a nice docs page that should eliminate some confusion if we linked to it with a comment in the project template. I considered putting a commented out example of disabling the C# binding (ala `EmbeddedReferenceJar`): <ItemGroup> <AndroidLibrary Update="foo.jar" Bind="false"> </ItemGroup But I think this case is rare, and the docs page should be sufficient.
* [android] migration table for confusing item group names Context: https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/OneDotNetEmbeddedResources.md Context: dotnet/android#8411 I had some feedback from customers that it would be helpful to include a table of the old item group names and what to do going forward. * Minor edits. --------- Co-authored-by: David Britch <davidbritch@users.noreply.github.com>
…8535) Fixes: #8411 Context: dotnet/docs-maui#1916 We have a nice docs page that should eliminate some confusion if we linked to it with a comment in the project template. I considered putting a commented out example of disabling the C# binding (a'la `@(EmbeddedReferenceJar)`): <ItemGroup> <AndroidLibrary Update="foo.jar" Bind="false"> </ItemGroup But I think this case is rare, and the docs page should be sufficient.
@jonathanpeppers i am still struggling to have an aar to be included in the app project that references the bindings project containing an aar simulating the old
then when the bindings project is referenced by app project at runtime the aar is not found. So as a workaound im actually including a copy inside the app
but that looks too bad as the aar is already present in the bindings project an the app project doesn't need to know about the aars used inside. Am i doing something wrong or?.. |
Can you file an issue with a It reminds me of an issue in .NET 7 that should be fixed in .NET 8. |
Android application type
.NET Android (net7.0-android, etc.)
Affected platform version
.NET 8
Description
I'm thinking the
.csproj
should give a couple examples ofBind="false"
, etc. in comments. Similar to how we have a few comments inMetadata.xml
.We should also have an aka.ms link to a documentation page about bindings.
This came up here: dotnet/maui#17826 (comment)
Steps to Reproduce
dotnet new androidbinding-lib
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: