Make sure LVS libraries are Trimming-friendly
Problem to solve
We need to make sure that LibVLCSharp libraries are Trimming-friendly when embedded in applications that enable trimming. If not, we would need to fix that.
I don't think of anywhere we're using reflection or something, but maybe callbacks could be trimmed out if it doesn't see the dependency?
References :
- https://devblogs.microsoft.com/dotnet/app-trimming-in-net-5/
- https://devblogs.microsoft.com/dotnet/customizing-trimming-in-net-core-5/
Intended users
Developers that care about trimming their app.
Proposal
dotnet publish
a trimmed version of the samples and see if they still work.
Documentation
Just tell our libraries are trimming-enabled.