-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] fix @(LibraryProjectZip) and NuGets (#7151
) Context: xamarin/GooglePlayServicesComponents#652 In .NET 6, `@(AndroidLibrary.Pack)` defaults to true (97190b6), while `%(LibraryProjectZip.Pack)` was never set, and thus was false. This would be an issue if you migrated a project using `@(LibraryProjectZip)` and were not relying on the default wildcards used by: <AndroidLibrary Include="**/*.aar" /> The result is that `.aar` files weren't included into the `.nupkg`, which would result in subsequent build & packaging errors when using the `.nupkg`, as the `.aar` was missing. Set `%(LibraryProjectZip.Pack)`=True by default in .NET 6+, to ease project migration from Classic Xamarin.Android to .NET 6. I updated a test for this scenario and fixed some assertions that are working since 2ca2a10 was merged.
- Loading branch information
1 parent
dbadf13
commit f149c25
Showing
2 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters