-
Notifications
You must be signed in to change notification settings - Fork 559
Closed
Labels
dotnetAn issue or pull request related to .NET (6)An issue or pull request related to .NET (6)dotnet-pri0.NET 6: required for stable release.NET 6: required for stable releaseenhancementThe issue or pull request is an enhancementThe issue or pull request is an enhancementiOSIssues affecting iOSIssues affecting iOSmacOSIssues affecting macOSIssues affecting macOS
Milestone
Description
Steps to Reproduce
- Create a NuGet package with assets in the runtimes/*/native folder (a .dll on win-x64, a .so on android-arm64 and a .framework in ios)
- Install the package into the various apps
- Observe the native files get included on Android (with an issue [One .NET] improve native library ABI detection at build time android#5432) and on Windows - but not on iOS
I see the PR that brings native bits into apps was merged: #11593. This fixes the ability to use native libs, but since all the other platforms automatically include the files under runtimes, this is a bit unexpected. (#11593)
There is the case where files may get greedily included by the build system, but this is not a big issue because the <PackageReference> element has the ExcludeAssets and IncludeAssets attribute that can be used to control this. (https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#controlling-dependency-assets)
Expected Behavior
The native framework /runtimes/ios/native/libSkiaSharp.framework is automatically included into the app.
Actual Behavior
The native framework was not included.
Environment
.NET 6.0
Build Logs
Example Project (If Possible)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dotnetAn issue or pull request related to .NET (6)An issue or pull request related to .NET (6)dotnet-pri0.NET 6: required for stable release.NET 6: required for stable releaseenhancementThe issue or pull request is an enhancementThe issue or pull request is an enhancementiOSIssues affecting iOSIssues affecting iOSmacOSIssues affecting macOSIssues affecting macOS