You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application is published correctly but the publish operation generates trim warnings:
MyFirstAotWebApi -> /Users/jamescrosswell/code/MyFirstAotWebApi/bin/Release/net8.0/osx-arm64/publish/
jamescrosswell@MacBook-Pro MyFirstAotWebApi % dotnet publish -f net8.0
MSBuild version 17.9.6+a4ecab324 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
MyFirstAotWebApi -> /Users/jamescrosswell/code/MyFirstAotWebApi/bin/Release/net8.0/osx-arm64/MyFirstAotWebApi.dll
Generating native code /Users/jamescrosswell/.nuget/packages/sentry/4.4.0/lib/net8.0/Sentry.dll : warning IL2104: Assembly 'Sentry' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/Users/jamescrosswell/code/MyFirstAotWebApi/MyFirstAotWebApi.csproj]
MyFirstAotWebApi -> /Users/jamescrosswell/code/MyFirstAotWebApi/bin/Release/net8.0/osx-arm64/publish/
Remarks
This is very odd as we explicitly set the IsAotCompatible MS Build property which should set IsTrimmable and enable the trim analyzer as well:
Steps to reproduce
Now publish the application again.
Expected Result
Application should publish without warnings.
Actual Result
The application is published correctly but the publish operation generates trim warnings:
Remarks
This is very odd as we explicitly set the
IsAotCompatible
MS Build property which should setIsTrimmable
and enable the trim analyzer as well:sentry-dotnet/src/Sentry/Sentry.csproj
Lines 27 to 29 in 4b33c36
If there are any trim warnings then, we should be getting these when building Sentry for the net8.0 targets.
The text was updated successfully, but these errors were encountered: