Native AOT binary size increase #4617
              
                
                  
                  
                    Answered
                  
                  by
                    jamescrosswell
                  
              
          
                  
                    
                      akamyshanov
                    
                  
                
                  asked this question in
                Q&A
              
            -
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            jamescrosswell
          
      
      
        Oct 10, 2025 
      
    
    Replies: 1 comment 1 reply
-
| @akamyshanov there's nothing specifically in Sentry no - that's all done by the trimmer when publishing the app. In the case of a Console app that simply prints Hello world, yes Sentry will add quite a bit since the delta between what your app is using and what Sentry is using from the .NET Runtime is quite a bit. If your app was using a bunch of stuff from the .NET Runtime that Sentry also uses, then this wouldn't get "added again" just because you add Sentry... so the increase in size for a real world app would be less than 8MB. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        akamyshanov
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

@akamyshanov there's nothing specifically in Sentry no - that's all done by the trimmer when publishing the app.
In the case of a Console app that simply prints Hello world, yes Sentry will add quite a bit since the delta between what your app is using and what Sentry is using from the .NET Runtime is quite a bit.
If your app was using a bunch of stuff from the .NET Runtime that Sentry also uses, then this wouldn't get "added again" just because you add Sentry... so the increase in size for a real world app would be less than 8MB.