[release/8.0.1xx] [msbuild] Fix resolving static libraries inside an XCFramework in a NuGet. by vs-mobiletools-engineering-service2 · Pull Request #19523 · dotnet/macios (original) (raw)
The ResolveNativeReferences task would incorrectly set Kind=Framework for static
libraries and dylibs if these files came from an XCFramework in the runtimes/native
directory in a NuGet (as opposed to a binding project, or the NuGet built from a
binding project).
Fix this by properly assigning the Kind and PublishFolderType metadata for such static
libraries and dylibs.
Also add a test.
Backport of #19502