Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[One .NET] fix binding generation for .jar in application projects (#…
…6281) Context: https://discord.com/channels/732297728826277939/732297837953679412/885897167900934175 Adding a single `.jar` file to a .NET 6 application project does not produce bindings: 1. The file is added to `@(AndroidLibrary)` and `@(AndroidJavaLibrary)` item groups, but not `@(EmbeddedJar)` or `@(InputJar)`. 2. Any MSBuild targets related to C# binding generation are skipped. I could reproduce this issue in a new test. Note that `@(AndroidLibrary)` is the preferred item group going forward in .NET 6. We still use the old names internally and support them in projects. One day we could drop support for the old names? To solve the issue, we can add `.jar` files to `@(InputJar)` for all .NET 6 application projects in the `_CategorizeAndroidLibraries` MSBuild target.
- Loading branch information