Hi,
When starting to prepare my application for .NET 6 (perlang-org/perlang#223), I am seeing errors like this:
/home/per/.nuget/packages/system.commandline/2.0.0-beta1.21216.1/lib/netstandard2.0/System.CommandLine.dll : error IL2104: Assembly 'System.CommandLine' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/home/per/git/perlang/src/Perlang.ConsoleApp/Perlang.ConsoleApp.csproj]
I wonder if there would be any way to fix this, apart from disabling the trimming warnings altogether? 🤔 .NET 6 does introduce a bunch of trimming-related changes (https://devblogs.microsoft.com/dotnet/announcing-net-6/#il-trimming), so I guess this is a consequence of the more advanced analysis it does before performing the trimming.
Hi,
When starting to prepare my application for .NET 6 (perlang-org/perlang#223), I am seeing errors like this:
I wonder if there would be any way to fix this, apart from disabling the trimming warnings altogether? 🤔 .NET 6 does introduce a bunch of trimming-related changes (https://devblogs.microsoft.com/dotnet/announcing-net-6/#il-trimming), so I guess this is a consequence of the more advanced analysis it does before performing the trimming.